📄 appointment.tmp1.html.en.php
字号:
<script language="JavaScript" src="calendar1.js"></script>
<script>
window.onload=checkinputs;
function checkinputs(){
document.form1.description.value = document.form1.hdndescription.value;
document.form1.alert_time.value = document.form1.hdnalerttime.value;
}
function validatform()
{
if(document.getElementById("subject").value == ""){
alert("Please Enter Subject");
document.getElementById("subject").focus();
return false;
}
if(document.getElementById("start").value == ""){
alert("Please Enter Appointment Start date");
document.getElementById("start").focus();
return false;
}
if(document.getElementById("end").value == ""){
alert("Please Enter Appointment End date");
document.getElementById("end").focus();
return false;
}
if(document.getElementById("start").value > document.getElementById("end").value){
alert("End Time must be less then Start Time");
document.getElementById("end").focus();
return false;
}
if(document.getElementById("description").value == ""){
alert("Please Enter description");
document.getElementById("description").focus();
return false;
}
if(document.getElementById("alert_time").value == ""){
alert("Please Select Alert Time");
document.getElementById("alert_time").focus();
return false;
}
return true;
}
</script>
<style type="text/css">
<!--
.style1 {color: #ECE9D8}
-->
</style>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><?php echo $this->elements['form1']->toHtmlnoClose();?>
<table width="65%" border="0" align="left" cellpadding="3">
<tr>
<td width="28%" class="fromLabel"><div align="right">Subject:*</div></td>
<td colspan="2"><input name="subject" type="text" class="textbox" id="subject" value="<?php echo htmlspecialchars($t->subject);?>" size="50" maxlength="100">
</td>
<td width="7%"> </td>
</tr>
<tr>
<td class="fromLabel"><div align="right">Location:</div></td>
<td colspan="2"><input name="location" type="text" class="textbox" id="location" value="<?php echo htmlspecialchars($t->location);?>" size="50" maxlength="100">
</td>
<td></td>
</tr>
<tr>
<td valign="top" class="fromLabel"><div align="right">Start:*</div></td>
<td colspan="2"><input name="start" type="text" id="start" value="<?php echo htmlspecialchars($t->starttime);?>" readonly class="textbox">
<a href="javascript:cal1.popup();"><img src="templates/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td>
<td><script>var cal1 = new calendar1(document.forms['form1'].elements['start']);
cal1.year_scroll = true;
cal1.time_comp = true;</script></td>
</tr>
<tr>
<td valign="top" class="fromLabel"><div align="right">End:*</div></td>
<td colspan="3"><input name="end" type="text" id="end" value="<?php echo htmlspecialchars($t->endtime);?>" readonly class="textbox">
<a href="javascript:cal2.popup();"><img src="templates/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td>
<script>var cal2 = new calendar1(document.forms['form1'].elements['end']);
cal2.year_scroll = true;
cal2.time_comp = true;</script>
</tr>
<tr>
<td valign="top" class="fromLabel"><div align="right">Description:*</div></td>
<td colspan="2"><?php echo $this->elements['description']->toHtml();?>
</td>
<td> </td>
</tr>
<tr>
<td class="fromLabel"><div align="right">Alert Time Before :* </div></td>
<td width="9%"><?php echo $this->elements['alert_time']->toHtml();?></td>
<td width="46%"> </td>
<td> </td>
</tr>
<tr>
<td class="fromLabel"> </td>
<td colspan="2"><?php echo $this->elements['btn_save']->toHtml();?>
<?php echo $this->elements['btn_add']->toHtml();?>
<?php echo $this->elements['btnback']->toHtml();?>
<input name="id" type="hidden" id="id" value="<?php echo htmlspecialchars($t->id);?>"></td>
<td> </td>
</tr>
</table>
<input name="hdndescription" type="hidden" id="hdndescription" value="<?php echo htmlspecialchars($t->description);?>">
<input name="hdnalerttime" type="hidden" id="hdnalerttime" value="<?php echo htmlspecialchars($t->alerttime);?>">
</form></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -