当前位置: 首页>>代码示例>>PHP>>正文


PHP drawselects函数代码示例

本文整理汇总了PHP中drawselects函数的典型用法代码示例。如果您正苦于以下问题:PHP drawselects函数的具体用法?PHP drawselects怎么用?PHP drawselects使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了drawselects函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _

<span><?php 
    echo _("Enter the digits to dial for this Misc Destination.<br>Valid Range are from:<br>100 to 899<br>1000 to 8999<br>10000 to 89999");
    ?>
</span></a></td>
		<td>
			<input type="text" maxlength="5" size="5" name="destdial" value="<?php 
    echo isset($extension) ? $extension : '';
    ?>
">&nbsp;&nbsp;
		</td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2">

<?php 
    $goto = getargs($extension, 1, 'ext-miscdests');
    echo drawselects('editMD', isset($goto) ? $goto : null, 0, 'fixINCOMING', '', '', 'fixCALLBACKEXT', 'fixMEETME');
    ?>

			</td></tr>
		<tr><td colspan="2"><br><h6><input name="Submit" type="submit" value="<?php 
    echo _("Submit Changes");
    ?>
"></h6>
		</td>
	</tr>
	</table>
<script language="javascript">
<!--

var theForm = document.editMD;
开发者ID:shinichi85,项目名称:voiperopen,代码行数:30,代码来源:miscdests.php

示例2: _

<!--Destination if no answer-->
<div class="element-container">
	<div class="row">
		<div class="col-md-12">
			<div class="row">
				<div class="form-group">
					<div class="col-md-3">
						<label class="control-label" for="goto0"><?php 
echo _("Destination if no answer");
?>
</label>
						<i class="fa fa-question-circle fpbx-help-icon" data-for="goto0"></i>
					</div>
					<div class="col-md-9">
						<?php 
echo drawselects($goto, 0, false, false);
?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<span id="goto0-help" class="help-block fpbx-help-block"><?php 
echo _("Where to send callers if there is no answer.");
?>
</span>
		</div>
	</div>
</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:advanced_form.php

示例3: _

"><?php 
    echo $default != '' ? $default : 'None';
    ?>
		</td>
	</tr>
<?php 
}
?>

	<tr><td colspan="2"><br><h5><?php 
echo _("Destination for Orphaned Parked Calls");
?>
:<hr></h5></td></tr>
<?php 
//draw goto selects
echo drawselects($goto, 0);
?>
	<tr>
		<td colspan="2"><br><h6><input name="Submit" type="submit" value="<?php 
echo _("Submit Changes");
?>
" tabindex="<?php 
echo ++$tabindex;
?>
"></h6></td>
	</tr>
	</table>

<script language="javascript">
<!--
开发者ID:hardikk,项目名称:HNH,代码行数:30,代码来源:page.parking.php

示例4: drawdestinations

function drawdestinations($count, $sel, $dest, $ivr_ret)
{
    global $tabindex, $id;
    ?>
	<tr>
	<td style="text-align:right;">
  <input title="<?php 
    echo _("Digits to press for this choice");
    ?>
" size="4" type="text" name="option<?php 
    echo $count;
    ?>
" value="<?php 
    echo $sel;
    ?>
" tabindex="<?php 
    echo ++$tabindex;
    ?>
">
	</td>
	<td>
		<?php 
    echo drawselects($dest, $count, false, false);
    ?>
	</td>
	<td>
		<small><a href="#" class="info"><?php 
    echo _("Return to IVR");
    ?>
<span><?php 
    echo _("Check this box to have this option return to a parent IVR if it was called from a parent IVR. If not, it will go to the chosen destination.<br><br>The return path will be to any IVR that was in the call path prior to this IVR which could lead to strange results if there was an IVR called in the call path but not immediately before this");
    ?>
</span></a></small>
		<input type="checkbox" name="ivr_ret<?php 
    echo $count;
    ?>
" value="ivr_ret" <?php 
    echo $ivr_ret ? 'CHECKED' : '';
    ?>
>
	<?php 
    if (function_exists('ivr_dests_hook_show')) {
        ivr_dests_hook_show($id, $dest);
    }
    ?>
		<img src="images/trash.png" style="cursor:pointer" title="<?php 
    echo _('Delete this entry. Dont forget to click \\"Save\\" to save changes!');
    ?>
" onclick="delEntry(<?php 
    echo $count;
    ?>
)">
	</td>
	</tr>
	

<?php 
}
开发者ID:hardikk,项目名称:HNH,代码行数:58,代码来源:page.ivr.php

示例5: _

						<!--Destination-->
						<div class="element-container">
							<div class="row">
								<div class="col-md-12">
									<div class="row">
										<div class="form-group">
											<div class="col-md-3 control-label">
												<label for="goto0"><?php 
echo _("Destination");
?>
</label>
												<i class="fa fa-question-circle fpbx-help-icon" data-for="goto0"></i>
											</div>
											<div class="col-md-9">
												<?php 
echo drawselects($dest, 0);
?>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="row">
								<div class="col-md-12">
									<span id="goto0-help" class="help-block fpbx-help-block"><?php 
echo _("Choose the destination for this app when people dial the feature code");
?>
</span>
								</div>
							</div>
						</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:main.php

示例6: _

echo ++$tabindex;
?>
" <?php 
echo $noanswer ? 'CHECKED' : '';
?>
 /></td>
	</tr>
	
	<tr><td colspan="2"><br><h5><?php 
echo _("Destination after playback");
?>
:<hr></h5></td></tr>

<?php 
//draw goto selects
echo drawselects($post_dest, 0);
?>
			
			<tr>
			<td colspan="2"><br><input name="Submit" type="submit" value="<?php 
echo _("Submit Changes");
?>
" tabindex="<?php 
echo ++$tabindex;
?>
">
			<?php 
if ($extdisplay) {
    echo '&nbsp;<input name="delete" type="submit" value="' . _("Delete") . '">';
}
?>
开发者ID:hardikk,项目名称:HNH,代码行数:31,代码来源:page.announcement.php

示例7: coreDIDHook


//.........这里部分代码省略.........
				<div class="element-container ' . ($faxing ? '' : "hidden") . '" id="fdtime">
					<div class="row">
						<div class="col-md-12">
							<div class="row">
								<div class="form-group">
									<div class="col-md-3">
										<label class="control-label" for="faxdetectionwait">' . _("Fax Detection Time") . '</label>
										<i class="fa fa-question-circle fpbx-help-icon" data-for="faxdetectionwait"></i>
									</div>
									<div class="col-md-9">
										<input type="number" min="2" max="11" class="form-control" id="faxdetectionwait" name="faxdetectionwait" value="' . $fax['detectionwait'] . '">
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-12">
							<span id="faxdetectionwait-help" class="help-block fpbx-help-block">' . $fdthelp . '</span>
						</div>
					</div>
				</div>
				<!--END Fax Detection Time-->
				';
                if (!empty($fax['legacy_email']) || $fax_settings['legacy_mode'] == 'yes') {
                    $fedhelp = _("Address to email faxes to on fax detection.<br />PLEASE NOTE: In this version of FreePBX, you can now set the fax destination from a list of destinations. Extensions/Users can be fax enabled in the user/extension screen and set an email address there. This will create a new destination type that can be selected. To upgrade this option to the full destination list, select YES to Detect Faxes and select a destination. After clicking submit, this route will be upgraded. This Legacy option will no longer be available after the change, it is provided to handle legacy migrations from previous versions of FreePBX only.");
                    $html .= '
					<!--Fax Email Destination-->
					<div class="element-container ' . ($faxing ? '' : "hidden") . '" id="fdemail">
						<div class="row">
							<div class="col-md-12">
								<div class="row">
									<div class="form-group">
										<div class="col-md-3">
											<label class="control-label" for="legacy_email"><?php echo _("Fax Email Destination") ?></label>
											<i class="fa fa-question-circle fpbx-help-icon" data-for="legacy_email"></i>
										</div>
										<div class="col-md-9">
											<input type="text" class="form-control" id="legacy_email" name="legacy_email" value="' . $fax['legacy_email'] . '">
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-12">
								<span id="legacy_email-help" class="help-block fpbx-help-block">' . $fedhelp . '</span>
							</div>
						</div>
					</div>
					<!--END Fax Email Destination-->
					';
                }
                $faxdesthelp = _('Where to send the faxes');
                $html .= '
				<!--Fax Destination-->
				<div class="element-container ' . ($faxing ? '' : "hidden") . '" id="fddest">
					<div class="row">
						<div class="col-md-12">
							<div class="row">
								<div class="form-group">
									<div class="col-md-3">
										<label class="control-label" for="gotofax">' . _("Fax Destination") . '</label>
										<i class="fa fa-question-circle fpbx-help-icon" data-for="gotofax"></i>
									</div>
									<div class="col-md-9">';
                $html .= $fax_detect ? drawselects(isset($fax['destination']) ? $fax['destination'] : null, 'FAX', false, false) : '';
                $html .= '
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-12">
							<span id="gotofax-help" class="help-block fpbx-help-block">' . $faxdesthelp . '</span>
						</div>
					</div>
				</div>
				<!--END Fax Destination-->
				<script type="text/javascript">
				$("[name=\'faxenabled\']").change(function(){
					if($(this).val() == \'true\'){
						$("#fdtype").removeClass("hidden");
						$("#fdtime").removeClass("hidden");
						$("#fddest").removeClass("hidden");
					}else{
						$("#fdtype").addClass("hidden");
						$("#fdtime").addClass("hidden");
						$("#fddest").addClass("hidden");
					}
				});
				</script>
				';
            }
            $ret = array();
            $ret[] = array('title' => _("Fax"), 'rawname' => 'fax', 'content' => $html);
            return $ret;
        }
    }
开发者ID:lidl,项目名称:fax,代码行数:101,代码来源:Fax.class.php

示例8: _

	<!--Timeout Destination-->
	<div class="element-container">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<div class="form-group">
						<div class="col-md-3">
							<label class="control-label" for="gototimeout"><?php 
echo _("Timeout Destination");
?>
</label>
							<i class="fa fa-question-circle fpbx-help-icon" data-for="gototimeout"></i>
						</div>
						<div class="col-md-9">
							<?php 
echo drawselects($ivr['timeout_destination'], 'timeout');
?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<span id="gototimeout-help" class="help-block fpbx-help-block"><?php 
echo _("Destination to send the call to after Timeout Recording is played.");
?>
</span>
			</div>
		</div>
	</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:advanced_form.php

示例9: _

	<!--Destination-->
	<div class="element-container">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<div class="form-group">
						<div class="col-md-3">
							<label class="control-label" for="goto0"><?php 
echo _("Destination");
?>
</label>
							<i class="fa fa-question-circle fpbx-help-icon" data-for="goto0"></i>
						</div>
						<div class="col-md-9">
							<?php 
echo drawselects($dest, 0, false, false);
?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<span id="goto0-help" class="help-block fpbx-help-block"><?php 
echo _("Failover Destination.");
?>
</span>
			</div>
		</div>
	</div>
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:lot.php

示例10: count

                                    $sources[$j]['showup'] = TRUE;
                                }
                                $c = count($conf['sources']) - 1;
                                if ($conf['sources'][$c] != $this_source_name) {
                                    $sources[$j]['showdown'] = TRUE;
                                }
                            }
                            $i++;
                        }
                    }
                }
            }
            ksort($sources);
            $conf['processors_list'] = $processors_list;
            $goto = !empty($conf['spam_destination']) ? $conf['spam_destination'] : '';
            $conf['interceptor_select'] = drawselects($goto, 0, FALSE, FALSE);
            $displayvars = array("sources" => $sources, "scheme_data" => $conf);
            $middle = load_view(__DIR__ . '/views/scheme.php', $displayvars);
        } else {
            $middle = _("Unknown Scheme");
        }
        break;
    default:
        if (isset($_POST['type'])) {
            $scheme = $_POST['scheme_name'];
            $type = $_POST['goto0'];
            $res = FreePBX::Superfecta()->addScheme($scheme, array('DID' => $_POST['DID'], 'CID_rules' => $_POST['CID_rules'], 'Curl_Timeout' => $_POST['Curl_Timeout'], 'processor' => $_POST['processor'], 'multifecta_timeout' => $_POST['multifecta_timeout'], 'Prefix_URL' => $_POST['Prefix_URL'], 'SPAM_Text' => $_POST['SPAM_Text'], 'SPAM_Text_Substitute' => $_POST['SPAM_Text_Substitute'], 'enable_interceptor' => $_POST['enable_interceptor'], 'SPAM_threshold' => $_POST['SPAM_threshold'], 'destination' => !empty($type) ? $_POST[$type . '0'] : ''));
        }
        $middle = load_view(__DIR__ . '/views/main.php', array("schemes" => FreePBX::Superfecta()->getAllSchemes()));
}
$currentScheme = !empty($_REQUEST['scheme']) ? $_REQUEST['scheme'] : '';
开发者ID:klagler,项目名称:Caller-ID-Superfecta,代码行数:31,代码来源:page.superfecta.php

示例11: ajaxHandler

 public function ajaxHandler()
 {
     $ret = array("status" => true);
     switch ($_REQUEST['command']) {
         case "import":
             $ret = $this->import($_POST['type'], array($_POST['imports']), !empty($_POST['replace']) ? true : false);
             break;
         case "destinationdrawselect":
             global $active_modules;
             $active_modules = $this->freepbx->Modules->getActiveModules();
             $this->freepbx->Modules->getDestinations();
             $ret = array("status" => true, "destid" => $_POST['destid'], "html" => drawselects($_POST['value'], $_POST['id'], false, false));
             break;
     }
     return $ret;
 }
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:16,代码来源:Bulkhandler.class.php

示例12: array

//build header
$h = array();
foreach ($headers as $mod => $header) {
    $h += $header;
}
$table->set_heading($h);
$count = 0;
foreach ($entries as $e) {
    $count++;
    //add ext to dial
    $row[] = form_input(array('name' => 'entries[ext][]', 'value' => $e['selection'], 'placeholder' => _('digits pressed')));
    //add destination. The last one gets a different count so that we can manipualte it on the page
    if ($count == count($entries)) {
        $row[] = drawselects($e['dest'], 'DESTID', $restrict_mods, false) . form_hidden('entries[goto][]', '');
    } else {
        $row[] = drawselects($e['dest'], $count, $restrict_mods, false) . form_hidden('entries[goto][]', '');
    }
    //return to ivr
    $row[] = '
		<span class="radioset">
		<input type="radio" name="entries[ivr_ret][DESTID' . $count . ']" id="entries' . $count . 'DESTIDyes" value="1" ' . ($e['ivr_ret'] ? "CHECKED" : "") . '>
		<label for="entries' . $count . 'DESTIDyes">' . _("Yes") . '</label>
		<input type="radio" name="entries[ivr_ret][DESTID' . $count . ']" id="entries' . $count . 'DESTIDno" value="" ' . ($e['ivr_ret'] ? "" : "CHECKED") . '>
		<label for="entries' . $count . 'DESTIDno">' . _("No") . '</label>
		</span>
	';
    //delete buttom
    $row[] = '<a href="#" alt="' . _('Delete this entry. Dont forget to click Submit to save changes!') . '" class="delete_entrie"><i class="fa fa-trash"></i></a>';
    //add module hooks
    if (isset($e['hooks']) && $e['hooks']) {
        foreach ($e['hooks'] as $module => $hooks) {
开发者ID:ringfreejohn,项目名称:pbxframework,代码行数:31,代码来源:entries.php

示例13: drawselects

    $checked = "";
    $style = "display: none";
}
?>
    <td><input type="checkbox" name="destret" id="destret" <?php 
echo $checked;
?>
></td>
  </tr>

  <tr style='<?php 
echo $style;
?>
' id='hasreturn'>
    <td colspan=2><?php 
echo drawselects($current['dest'], 0, false, false);
?>
</td>
  </tr>

  <tr>
    <td colspan="2"><br>
    <?php 
if ($destid) {
    ?>
      <button type="submit" name="action" value="edit"><?php 
    echo _("Submit Changes");
    ?>
</button>
      <button type="submit" name="action" value="delete"><?php 
    echo _("Delete");
开发者ID:umjinsun12,项目名称:dngshin,代码行数:31,代码来源:page.customdests.php

示例14: gui_drawselects

 function gui_drawselects($elemname, $index, $dest, $prompttext = '', $helptext = '', $canbeempty = true, $failvalidationmsg = '')
 {
     global $currentcomponent;
     $parent_class = get_parent_class($this);
     if (!$canbeempty) {
         $jsvalidation = '()';
         $jsvalidationtest = '!$("[name=goto' . $index . ']").val()';
         $failvalidationmsg = _('Please select a valid destination.');
     }
     parent::$parent_class($elemname, '', $prompttext, $helptext, $jsvalidation, $failvalidationmsg, '', $jsvalidationtest);
     $this->html_input = drawselects($dest, $index, false, false);
     //adttach a value to this element, so that we can find its value
     $currentcomponent->addguielem('', new gui_hidden($elemname, 'goto' . $index));
 }
开发者ID:hardikk,项目名称:HNH,代码行数:14,代码来源:components.class.php

示例15: drawdestinations

function drawdestinations($count, $mode, $dest)
{
    ?>
	<tr> 
		<td style="text-align:right;">
		<a href="#" class="info"><strong><?php 
    echo $mode;
    ?>
</strong><span><?php 
    echo sprintf(_("Destination to use when set to %s mode"), $mode);
    ?>
</span></a>
		</td>
		<td> 
			<table> <?php 
    echo drawselects($dest, $count);
    ?>
 
			</table> 
		</td>
	</tr>
	<tr><td colspan=2><hr /></td></tr>
<?php 
}
开发者ID:hardikk,项目名称:HNH,代码行数:24,代码来源:page.daynight.php


注:本文中的drawselects函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。