本文整理汇总了PHP中InputType函数的典型用法代码示例。如果您正苦于以下问题:PHP InputType函数的具体用法?PHP InputType怎么用?PHP InputType使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了InputType函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$ref_id = array();
$ref[] = GetMessage("SUP_NO");
$ref_id[] = "0";
$z = CTicket::GetSupportTeamList();
while ($zr = $z->Fetch()) {
$ref[] = $zr["REFERENCE"];
$ref_id[] = $zr["REFERENCE_ID"];
}
$arr = array("REFERENCE" => $ref, "REFERENCE_ID" => $ref_id);
echo SelectBoxFromArray("find_responsible_id", $arr, htmlspecialcharsbx($find_responsible_id), GetMessage("SUP_ALL"));
?>
<br><input type="text" name="find_responsible" size="47" value="<?php
echo htmlspecialcharsbx($find_responsible);
?>
"><?php
echo InputType("checkbox", "find_responsible_exact_match", "Y", $find_responsible_exact_match, false, "", "title='" . GetMessage("SUP_EXACT_MATCH") . "'");
?>
<?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr valign="center">
<td nowrap><?php
echo GetMessage("SUP_F_DEFAULT");
?>
:</td>
<td nowrap><?php
$arr = array("reference" => array(GetMessage("SUP_YES"), GetMessage("SUP_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_default", $arr, htmlspecialcharsbx($find_default), GetMessage("SUP_ALL"));
?>
示例2: htmlspecialcharsbx
</td>
<td><input size="3" type="text" name="DEFENCE_MAX_STACK_HITS" id="DEFENCE_MAX_STACK_HITS" value="<?php
echo htmlspecialcharsbx($DEFENCE_MAX_STACK_HITS);
?>
"> <?php
echo GetMessage("STAT_OPT_DEFENCE_MAX_STACK_HITS_MEASURE");
?>
</td>
</tr>
<tr>
<td nowrap><label for="DEFENCE_LOG"><?php
echo GetMessage("STAT_OPT_DEFENCE_LOG", array("#HREF#" => "/bitrix/admin/event_log.php?lang=" . LANGUAGE_ID . "&set_filter=Y&find_type=audit_type_id&find_audit_type[]=STAT_ACTIVITY_LIMIT"));
?>
</label></td>
<td><?php
echo InputType("checkbox", "DEFENCE_LOG", "Y", $DEFENCE_LOG);
?>
</td>
</tr>
<?php
$tabControl->EndTab();
?>
<script language="JavaScript">
function ChangeDefenceSwitch()
{
var obSwitch = document.getElementById("DEFENCE_ON");
document.getElementById("DEFENCE_DELAY").disabled = !obSwitch.checked;
document.getElementById("DEFENCE_STACK_TIME").disabled = !obSwitch.checked;
document.getElementById("DEFENCE_MAX_STACK_HITS").disabled = !obSwitch.checked;
document.getElementById("DEFENCE_MAX_STACK_HITS").disabled = !obSwitch.checked;
document.getElementById("DEFENCE_LOG").disabled = !obSwitch.checked;
示例3: ShowFilterLogicHelp
?>
<?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("AD_F_COMMENTS");
?>
:</td>
<td><input type="text" name="find_comments" size="47" value="<?php
echo htmlspecialcharsbx($find_comments);
?>
"><?php
echo InputType("checkbox", "find_comments_exact_match", "Y", $find_comments_exact_match, false, "", "title='" . GetMessage("AD_EXACT_MATCH") . "'");
?>
<?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<?php
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "form1"));
$oFilter->End();
?>
</form>
<?php
$lAdmin->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例4: GetMessage
<td><?php
echo GetMessage("STAT_ADV_VISIBLE", array("#LANG#" => LANG));
?>
</td>
<td><?php
echo InputType("checkbox", "ADV_VISIBLE", "Y", $str_ADV_VISIBLE, false);
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("STAT_PIE_CHART");
?>
</td>
<td><?php
echo InputType("checkbox", "DIAGRAM_DEFAULT", "Y", $str_DIAGRAM_DEFAULT, false);
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("STAT_KEEP_DAYS");
?>
</td>
<td><input type="text" name="KEEP_DAYS" size="5" value="<?php
echo $str_KEEP_DAYS;
?>
"></td>
</tr>
<tr>
<td><?php
示例5: InputType
?>
" size="47"><?php
echo InputType("checkbox", "find_question_exact_match", "Y", $find_question_exact_match, false, "", "title='" . GetMessage("VOTE_EXACT_MATCH") . "'");
?>
<?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
<td>ID:</td>
<td><input type="text" name="find_id" size="47" value="<?php
echo htmlspecialcharsbx($find_id);
?>
"><?php
echo InputType("checkbox", "find_id_exact_match", "Y", $find_id_exact_match, false, "", "title='" . GetMessage("VOTE_EXACT_MATCH") . "'");
?>
<?php
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
<td><?php
echo GetMessage("VOTE_F_ACTIVE");
?>
</td>
<td><?php
$arr = array("reference" => array(GetMessage("VOTE_YES"), GetMessage("VOTE_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_active", $arr, htmlspecialcharsbx($find_active), GetMessage("VOTE_ALL"));
?>
示例6: GetMessage
$arRatingUserProp = CRatings::GetRatingUserProp($ratingId, $ID);
if ($ratingId == $authorityRatingId && $arRatingUserProp['BONUS'] == 0)
$arRatingUserProp['BONUS'] = COption::GetOptionString("main", "rating_start_authority", 3);
$viewTabControl->BeginNextTab();
?>
<table cellspacing="7" cellpadding="0" border="0" width="100%" class="edit-table">
<? if ($USER->CanDoOperation('edit_ratings') && ($selfEdit || $ID!=$uid)): ?>
<tr>
<td class="field-name" width="40%"><?php
echo GetMessage('RATING_BONUS');
?>
:<sup><span class="required">2</span></sup></td>
<td><?php
echo InputType('text', "RATING_BONUS[{$ratingId}]", floatval($arRatingUserProp['BONUS']), false, false, '', 'size="5" maxlength="11"');
?>
<?php
echo $ratingWeightType == 'auto' ? 'x ' . GetMessage('RATING_NORM_VOTE_WEIGHT') : '';
?>
</td>
</tr>
<? endif; ?>
<tr>
<td class="field-name" width="40%"><?php
echo GetMessage('RATING_POSITION');
?>
:</td>
<td>
<?$APPLICATION->IncludeComponent(
"bitrix:rating.result", "",
示例7: GetMessage
}
</script>
<?php
$disableFixClick = "";
if ($str_FIX_CLICK != "Y") {
$disableFixClick = " disabled";
}
?>
<tr valign="top">
<td width="40%"><label for="FIX_CLICK"><?php
echo GetMessage("AD_FIX_CLICK");
?>
</label></td>
<td width="60%"><?php
if ($isEditMode) {
echo InputType("checkbox", "FIX_CLICK", "Y", $str_FIX_CLICK, false, "", 'id="FIX_CLICK" OnClick="DisableFixClick();"');
} else {
echo $str_FIX_CLICK == "Y" ? GetMessage("AD_YES") : GetMessage("AD_NO");
}
?>
</td>
</tr>
<?php
}
?>
<?php
if (!$isEditMode) {
?>
<tr valign="top">
<td><?php
示例8: GetMessage
echo $str_DESCR;
?>
</textarea></td>
</tr>
<tr>
<td width="100%" colspan=2 align="center">
<div id="tr_default">
<table width="100%" cellspacing=0 cellpadding=0>
<tr valign="top">
<td align="right" width="40%"><?php
echo GetMessage("SUP_BY_DEFAULT");
?>
</td>
<td width="60%" align="left" style="padding-left: 10px;"><?php
echo InputType("checkbox", "SET_AS_DEFAULT", "Y", $str_SET_AS_DEFAULT, false);
?>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="100%" colspan=2 align="center">
<div id="tr_responsible">
<table width="100%" cellspacing=0 cellpadding=0>
<tr>
<td align="right" width="40%"><?php
echo GetMessage("SUP_RESPONSIBLE");
?>
示例9: GetMessage
if (BX.type.isArray(data['MESSAGE[]']) && data['MESSAGE[]'].length > 1)
{
RowInsert();
while (document.forms.form1['MESSAGE[]'].length < data['MESSAGE[]'].length)
RowInsert();
}
})
});
</script>
<? ################################# END ################ ?>
<tr>
<td><?php
echo GetMessage("FORM_REQUIRED");
?>
</td>
<td><?echo InputType("checkbox","REQUIRED","Y",$str_REQUIRED,false) ?></td>
</tr>
<tr>
<td><?php
echo GetMessage("FORM_ANS_TYPE");
?>
</td>
<td><select name="FIELD_TYPE" id="selected_type" onchange="ShowSelected(); jsFormValidatorSettings.UpdateAll();">
<?
$arDisplay = array(
'text' =>'none',
'textarea' =>'none',
'list' =>'none',
);
$arCompat_desc[1]=array(
'radio' =>GetMessage('F_TYPES_RADIO'),
示例10: GetMessage
$tabControl->Begin();
$tabControl->BeginNextFormTab();
$tabControl->AddEditField("NAME", GetMessage('RATING_RULE_EDIT_FRM_NAME'), true, array("size"=>54, "maxlength"=>255), $str_NAME);
$tabControl->BeginCustomField("ACTIVE", GetMessage('RATING_RULE_EDIT_FRM_ACTIVE'), false);
?>
<tr>
<td><?php
echo GetMessage("RATING_RULE_EDIT_FRM_ACTIVE");
?>
</td>
<td><?php
echo InputType("checkbox", "ACTIVE", "Y", $str_ACTIVE);
?>
</td>
</tr>
<?
$tabControl->EndCustomField("ACTIVE");
$tabControl->BeginCustomField("ENTITY_TYPE_ID", GetMessage('RATING_RULE_EDIT_FRM_TYPE_ID'), true);
$arObjects = CRatingRule::GetRatingRuleObjects();
?>
<tr style="<?php
echo count($arObjects) > 1 ? '' : 'display:none';
?>
" class="adm-detail-required-field">
<td><?php
echo GetMessage("RATING_RULE_EDIT_FRM_TYPE_ID");
示例11: InputType
echo InputType("checkbox", "find_allow_delivery", "Y", $find_allow_delivery, false, false, 'id="find_allow_delivery"');
?>
<label for="find_allow_delivery"><?php
echo GetMessage("SALE_ALLOW_DELIVERY");
?>
</label><br>
<?php
echo InputType("checkbox", "find_canceled", "Y", $find_canceled, false, false, 'id="find_canceled"');
?>
<label for="find_canceled"><?php
echo GetMessage("SALE_CANCELED");
?>
</label><br>
<?php
foreach ($arStatus as $k => $v) {
echo InputType("checkbox", "find_status_" . $k, "Y", ${"find_status_" . $k}, false, false, 'id="find_status_' . $k . '"');
?>
<label for="find_status_<?php
echo $k;
?>
"><?php
echo $v;
?>
</label><br>
<?php
}
?>
</td>
</tr>
<tr>
<td><?php
示例12: GetMessage
<td nowrap><?php
echo GetMessage("SUP_MESSAGES");
?>
</td>
<td align="center"><?php
echo InputType("checkbox", "find_mess", "Y", $find_mess, false);
?>
</td>
</tr>
<tr>
<td nowrap><?php
echo GetMessage("SUP_OVERDUE_MESSAGES");
?>
</td>
<td align="center"><?php
echo InputType("checkbox", "find_overdue_mess", "Y", $find_overdue_mess, false);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<?php
$filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "form1"));
$filter->End();
示例13: InputType
<td><?php
echo InputType('text', 'newpoint_lat', '', '', false, '', 'class="newpoint_lat"');
?>
</td>
</tr>
<tr>
<td class="title">Долгота (37.12345)</td>
<td><?php
echo InputType('text', 'newpoint_lon', '', '', false, '', 'class="newpoint_lon"');
?>
</td>
</tr>
<tr>
<td class="title">Комментарий</td>
<td><?php
echo InputType('text', 'comment', $arTs[0]["INFO"], '', false, '', 'class="comment"');
?>
</td>
</tr>
<tr>
<td class="center" colspan="2">
<input type="hidden" name="action" value="1">
<input type="hidden" name="edit_id" value="<?php
echo $editID;
?>
">
<input type="submit" value="Редактировать запись">
</td>
</tr>
</table>
</form>
示例14: GetMessage
<td align="right"><?php
echo GetMessage("STAT_MESSAGE_LID");
?>
</td>
<td><?php
echo CLanguage::SelectBox("MESSAGE_LID", $str_MESSAGE_LID);
?>
</td>
</tr>
<tr valign="top">
<td align="right"><?php
echo GetMessage("STAT_SAVE_STATISTIC");
?>
</td>
<td><?php
echo InputType("checkbox", "SAVE_STATISTIC", "Y", $str_SAVE_STATISTIC, false);
?>
</td>
</tr>
<?php
$tabControl->BeginNextTab();
?>
<tr valign="top">
<td colspan="2" align="center"><textarea style="width:100%" name="COMMENTS" rows="5" wrap="VIRTUAL"><?php
echo $str_COMMENTS;
?>
</textarea></td>
</tr>
<?php
$tabControl->Buttons(array("disabled" => $STAT_RIGHT < "W", "back_url" => "/bitrix/admin/stoplist_list.php?lang=" . LANG . "&set_filter=Y"));
$tabControl->End();
示例15: InputType
<?echo InputType("checkbox","find_page_views","Y",$find_page_views,false,false,'id="find_page_views"');?>
<label for="find_hit"><?php
echo GetMessage("LOL_METRIKA_PAGE_VIEWS_2");
?>
</label><br>
<?echo InputType("checkbox","find_visitors","Y",$find_visitors,false,false,'id="find_visitors"'); ?>
<label for="find_visitors"><?php
echo GetMessage("LOL_METRIKA_VISITORS_2");
?>
</label><br>
<?echo InputType("checkbox","find_visits","Y",$find_visits,false,false,'id="find_visits"'); ?>
<label for="find_visits"><?php
echo GetMessage("LOL_METRIKA_VISITS_2");
?>
</label><br>
<?echo InputType("checkbox","find_new_visitors","Y",$find_new_visitors,false,false,'id="find_new_visitors"'); ?>
<label for="find_new_visitors"><?php
echo GetMessage("LOL_METRIKA_NEW_VISITORS_2");
?>
</label><br>
</td>
</tr>
<?
$oFilter->Buttons(array("table_id"=>$sTableID, "url"=>$APPLICATION->GetCurPage(), "form" => "find_form", "report"=>true));
$oFilter->End();
?>
</form>
<?
if($message)
echo $message->Show();