📄 page.users.php
字号:
<a href="#" class="info"><?php echo _("Outbound CID")?><span><?php echo _("Overrides the caller id when dialing out a trunk. Any setting here will override the common outbound caller id set in the Trunks admin.<br><br>Format: <b>\"caller name\" <#######></b><br><br>Leave this field blank to disable the outbound callerid feature for this user.")?><br></span></a>: </td><td> <input type="text" name="outboundcid" value="<?php echo htmlentities($outboundcid) ?>"/> </td> </tr> <!--<tr> <td> <a href="#" class="info"><?php echo _("Ring Timer")?><span><?php echo _("Number of seconds to ring the extension before giving up.")?><br></span></a>: </td><td> <input type="text" name="ringtimer" value="<?php echo $ringtimer ?>"/> </td> </tr>--> <tr> <td> <a href="#" class="info"><?php echo _("Record Incoming")?><span><?php echo _("Record all inbound calls received at this extension.")?><br></span></a>: </td><td> <select name="record_in"/> <option value="Adhoc" <?php echo ($record_in == "On-Demand") ? 'selected' : '' ?>><?php echo _("On Demand")?> <option value="Always" <?php echo ($record_in == "Always") ? 'selected' : '' ?>><?php echo _("Always")?> <option value="Never" <?php echo ($record_in == "Never") ? 'selected' : '' ?>><?php echo _("Never")?> </select> </td> </tr> <tr> <td> <a href="#" class="info"><?php echo _("Record Outgoing")?><span><?php echo _("Record all outbound calls received at this extension.")?><br></span></a>: </td><td> <select name="record_out"/> <option value="Adhoc" <?php echo ($record_out == "On-Demand") ? 'selected' : '' ?>><?php echo _("On Demand")?> <option value="Always" <?php echo ($record_out == "Always") ? 'selected' : '' ?>><?php echo _("Always")?> <option value="Never" <?php echo ($record_out == "Never") ? 'selected' : '' ?>><?php echo _("Never")?> </select> </td> </tr> <tr><td colspan=2> <h5><br><br><?php echo _("Voicemail & Directory:")?> <select name="vm" onchange="checkVoicemail(addNew);"> <option value="enabled" <?php echo ($vm) ? 'selected' : '' ?>><?php echo _("Enabled");?></option> <option value="disabled" <?php echo (!$vm) ? 'selected' : '' ?>><?php echo _("Disabled");?></option> </select> <hr></h5> </td></tr> <tr><td colspan=2> <table id="voicemail" <?php echo ($vm) ? '' : 'style="display:none;"' ?>> <tr> <td> <a href="#" class="info"><?php echo _("voicemail password")?><span><?php echo _("This is the password used to access the voicemail system.<br><br>This password can only contain numbers.<br><br>A user can change the password you enter here after logging into the voicemail system (*98) with a phone.")?><br><br></span></a>: </td><td> <input size="10" type="text" name="vmpwd" value="<?php echo $vmpwd ?>"/> </td> </tr> <tr> <td><a href="#" class="info"><?php echo _("email address")?><span><?php echo _("The email address that voicemails are sent to.")?></span></a>: </td> <td><input type="text" name="email" value="<?php echo htmlspecialchars($email); ?>"/></td> </tr> <tr> <td><a href="#" class="info"><?php echo _("pager email address")?><span><?echo _("Pager/mobile email address that short voicemail notifcations are sent to.")?></span></a>: </td> <td><input type="text" name="pager" value="<?php echo htmlspecialchars($pager); ?>"/></td> </tr> <tr> <td><a href="#" class="info"><?php echo _("email attachment")?><span><?php echo _("Option to attach voicemails to email.")?></span></a>: </td> <?php if ($vmops_attach == "yes"){?> <td><input type="radio" name="attach" value="attach=yes" checked=checked/> <?php echo _("yes");?> <input type="radio" name="attach" value="attach=no"/> <?php echo _("no");?></td> <?php } else{ ?> <td><input type="radio" name="attach" value="attach=yes" /> <?php echo _("yes");?> <input type="radio" name="attach" value="attach=no" checked=checked /> <?php echo _("no");?></td> <?php }?> </tr> <tr> <td><a href="#" class="info"><?php echo _("Play CID")?><span><?php echo _("Read back caller's telephone number prior to playing the incoming message, and just after announcing the date and time the message was left.")?></span></a>: </td> <?php if ($vmops_saycid == "yes"){?> <td><input type="radio" name="saycid" value="saycid=yes" checked=checked/> <?php echo _("yes");?> <input type="radio" name="saycid" value="saycid=no"/> <?php echo _("no");?></td> <?php } else{ ?> <td><input type="radio" name="saycid" value="saycid=yes" /> <?php echo _("yes");?> <input type="radio" name="saycid" value="saycid=no" checked=checked /> <?php echo _("no");?></td> <?php }?> </tr> <tr> <td><a href="#" class="info"><?php echo _("Play Envelope")?><span><?php echo _("Envelope controls whether or not the voicemail system will play the message envelope (date/time) before playing the voicemail message. This settng does not affect the operation of the envelope option in the advanced voicemail menu.")?></span></a>: </td> <?php if ($vmops_envelope == "yes"){?> <td><input type="radio" name="envelope" value="envelope=yes" checked=checked/> <?php echo _("yes");?> <input type="radio" name="envelope" value="envelope=no"/> <?php echo _("no");?></td> <?php } else{ ?> <td><input type="radio" name="envelope" value="envelope=yes" /> <?php echo _("yes");?> <input type="radio" name="envelope" value="envelope=no" checked=checked /> <?php echo _("no");?></td> <?php }?> </tr> <tr> <td><a href="#" class="info"><?php echo _("Delete Vmail")?><span><?php echo _("If set to \"yes\" the message will be deleted from the voicemailbox (after having been emailed). Provides functionality that allows a user to receive their voicemail via email alone, rather than having the voicemail able to be retrieved from the Webinterface or the Extension handset. CAUTION: MUST HAVE attach voicemail to email SET TO YES OTHERWISE YOUR MESSAGES WILL BE LOST FOREVER.")?></span></a>: </td> <?php if ($vmops_delete == "yes"){?> <td><input type="radio" name="delete" value="delete=yes" checked=checked/> <?php echo _("yes");?> <input type="radio" name="delete" value="delete=no"/> <?php echo _("no");?></td> <?php } else{ ?> <td><input type="radio" name="delete" value="delete=yes" /> <?php echo _("yes");?> <input type="radio" name="delete" value="delete=no" checked=checked /> <?php echo _("no");?></td> <?php }?> </tr> <tr> <td><a href="#" class="info">vm options<span><?php echo _("Separate options with pipe ( | )")?><br><br>ie: review=yes|maxmessage=60</span></a>: </td> <td><input size="20" type="text" name="options" value="<?php echo htmlspecialchars($options); ?>" /></td> </tr> <tr> <td><?php echo _("vm context:")?> </td> <td><input size="20" type="text" name="vmcontext" value="<?php echo $vmcontext; ?>" /></td> </tr> </table> </td></tr> <tr> <td colspan=2> <br><br><h6><input name="Submit" type="submit" value="<?php echo _("Submit")?>"></h6> </td> </tr> </table><script language="javascript"><!--var theForm = document.addNew;if (theForm.extension.value == "") { theForm.extension.focus();} else { theForm.name.focus();}function addNew_onsubmit() { var msgInvalidExtNum = "<?php echo _('Please enter a valid extension number.'); ?>"; var msgInvalidExtPwd = "<?php echo _('Please enter valid User Password using numbers only'); ?>"; var msgInvalidDispName = "<?php echo _('Please enter a valid Display Name'); ?>"; var msgInvalidOutboundCID = "<?php echo _('Please enter a valid Outbound CID'); ?>"; var msgInvalidVmPwd = "<?php echo _('Please enter a valid Voicemail Password, using digits only'); ?>"; var msgInvalidEmail = "<?php echo _('Please enter a valid Email Address'); ?>"; var msgInvalidPager = "<?php echo _('Please enter a valid Pager Email Address'); ?>"; var msgInvalidVMContext = "<?php echo _('VM Context cannot be blank'); ?>"; var msgConfirmBlankUserPwd = "<?php echo _('You have not entered a User Password. While this is acceptable, this user will not be able to login to an AdHoc device.\n\nAre you sure you wish to leave the User Password empty?'); ?>"; defaultEmptyOK = false; if (!isInteger(theForm.extension.value)) return warnInvalid(theForm.extension, msgInvalidExtNum); defaultEmptyOK = true; if (!isInteger(theForm.password.value) && !isWhitespace(theForm.password.value)) return warnInvalid(theForm.password, msgInvalidExtPwd); defaultEmptyOK = false; if (!isCallerID(theForm.name.value)) return warnInvalid(theForm.name, msgInvalidDispName); defaultEmptyOK = true; if (!isCallerID(theForm.outboundcid.value)) return warnInvalid(theForm.outboundcid, msgInvalidOutboundCID); // voicemail stuff if (theForm.vm.value == "enabled") { defaultEmptyOK = false; if (!isInteger(theForm.vmpwd.value)) return warnInvalid(theForm.vmpwd, msgInvalidVmPwd); defaultEmptyOK = true; if (!isEmail(theForm.email.value)) return warnInvalid(theForm.email, msgInvalidEmail); if (!isEmail(theForm.pager.value)) return warnInvalid(theForm.pager, msgInvalidPager); defaultEmptyOK = false; if (isEmpty(theForm.vmcontext.value) || isWhitespace(theForm.vmcontext.value)) return warnInvalid(theForm.vmcontext, msgInvalidVMContext); } <?php if ( (isset($_REQUEST['extdisplay']) ? $_REQUEST['extdisplay'] : '') == '' ) { // adding so check for empty password ?> // check for password and warn if none entered if (isEmpty(theForm.password.value)) { var cnf = confirm(msgConfirmBlankUserPwd); if (!cnf) { theForm.password.focus(); return false; } } <?php } ?> return true;}function checkVoicemail(theForm) { $vm = theForm.elements["vm"].value; if ($vm == 'disabled') { document.getElementById('voicemail').style.display='none'; theForm.vmpwd.value = ''; theForm.email.value = ''; theForm.pager.value = ''; } else { document.getElementById('voicemail').style.display='block'; }}//--></script> </form><?php } //end if action-del?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -