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


PHP CalendarPeriod函数代码示例

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


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

示例1: genFilterHTML

 /**
  * Генерирует HTML для поля фильтрации
  * @see AdminListHelper::createFilterForm();
  * @return mixed
  */
 public function genFilterHTML()
 {
     list($inputNameFrom, $inputNameTo) = $this->getFilterInputName();
     print '<tr>';
     print '<td>' . $this->settings['TITLE'] . '</td>';
     print '<td width="0%" nowrap>' . CalendarPeriod($inputNameFrom, ${$inputNameFrom}, $inputNameTo, ${$inputNameTo}, "find_form") . '</td>';
 }
开发者ID:Reprezo,项目名称:digitalwand.admin_helper,代码行数:12,代码来源:DateTimeWidget.php

示例2: htmlspecialcharsex

?>
:</td>
					<td nowrap>
						<input type="text" name="filter_code" size="50" value="<?php 
echo htmlspecialcharsex(${"filter_code"});
?>
">
					</td>
				</tr>
				<tr>
					<td nowrap><?php 
echo GetMessage("SPS_TIMESTAMP");
?>
:</td>
					<td nowrap><?php 
echo CalendarPeriod("filter_timestamp_from", htmlspecialcharsex($filter_timestamp_from), "filter_timestamp_to", htmlspecialcharsex($filter_timestamp_to), "form1");
?>
</td>
				</tr>
				<tr>
					<td nowrap><?php 
echo GetMessage("SPS_ACTIVE");
?>
:</td>
					<td nowrap>
						<select name="filter_active">
							<option value=""><?php 
echo htmlspecialcharsex("(" . GetMessage("SPS_ANY") . ")");
?>
</option>
							<option value="Y"<?php 
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:product_search.php

示例3: GetMessage

    $ar[] = GetMessage("BPATL_USER_ID");
}
$oFilter = new CAdminFilter($sTableID . "_filter", $ar);
$oFilter->SetDefaultRows(array("filter_modified_1", 'filter_name'));
$oFilter->AddPreset(array("ID" => "filter_running", "NAME" => GetMessage("BPATL_FILTER_STATUS_RUNNING"), "FIELDS" => array("filter_status" => 0)));
$oFilter->AddPreset(array("ID" => "filter_complete", "NAME" => GetMessage("BPATL_FILTER_STATUS_COMPLETE"), "FIELDS" => array("filter_status" => 1)));
$oFilter->AddPreset(array("ID" => "filter_all", "NAME" => GetMessage("BPATL_FILTER_STATUS_ALL"), "FIELDS" => array("filter_status" => 2)));
$oFilter->Begin();
?>
	<tr>
		<td><?php 
echo GetMessage("BPATL_F_MODIFIED");
?>
:</td>
		<td><?php 
echo CalendarPeriod("filter_modified_1", htmlspecialcharsbx($filter_modified_1), "filter_modified_2", htmlspecialcharsbx($filter_modified_2), "find_form", "Y");
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("BPATL_F_NAME");
?>
:</td>
		<td><input type="text" name="filter_name" value="<?php 
echo htmlspecialcharsex($filter_name);
?>
" size="30">
		</td>
	</tr>
	<tr>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:task_list.php

示例4: GetMessage

	</td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_ID")?></td>
	<td><input type="text" name="find_id" size="47" value="<?echo htmlspecialcharsbx($find_id)?>"><?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_TIMESTAMP").":"?></td>
	<td><?echo CalendarPeriod("find_timestamp_1", htmlspecialcharsbx($find_timestamp_1), "find_timestamp_2", htmlspecialcharsbx($find_timestamp_2), "find_form","Y")?></td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_LAST_LOGIN").":"?></td>
	<td><?echo CalendarPeriod("find_last_login_1", htmlspecialcharsbx($find_last_login_1), "find_last_login_2", htmlspecialcharsbx($find_last_login_2), "find_form","Y")?></td>
</tr>
<tr>
	<td><?echo GetMessage("F_ACTIVE")?></td>
	<td><?
		$arr = array("reference"=>array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id"=>array("Y","N"));
		echo SelectBoxFromArray("find_active", $arr, htmlspecialcharsbx($find_active), GetMessage('MAIN_ALL'));
		?>
	</td>
</tr>
<tr>
	<td><?echo GetMessage("F_LOGIN")?></td>
	<td><input type="text" name="find_login" size="47" value="<?echo htmlspecialcharsbx($find_login)?>"><?php 
echo ShowFilterLogicHelp();
?>
</td>
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:user_search.php

示例5: GetMessage

echo GetMessage("LEARNING_ADMIN_GROUPS_ACTIVE_FROM");
?>
:</td>
		<td><?php 
echo CalendarPeriod("filter_active_from_from", htmlspecialcharsex($filter_active_from_from), "filter_active_from_to", htmlspecialcharsex($filter_active_from_to), "filter_active_from");
?>
</td>
	</tr>

	<tr>
		<td><?php 
echo GetMessage("LEARNING_ADMIN_GROUPS_ACTIVE_TO");
?>
:</td>
		<td><?php 
echo CalendarPeriod("filter_active_to_from", htmlspecialcharsex($filter_active_to_from), "filter_active_to_to", htmlspecialcharsex($filter_active_to_to), "filter_active_to");
?>
</td>
	</tr>

<?php 
$filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . "?" . GetFilterParams("filter_"), "form" => "form1"));
$filter->End();
?>
</form>


<?php 
$lAdmin->DisplayList();
?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:30,代码来源:learn_group_admin.php

示例6: GetMessage

?>

<form name="find_form" method="GET" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?">
<?php 
$oFilter->Begin();
?>
<tr>
	<td><?php 
echo GetMessage("STAT_F_PERIOD") . " (" . FORMAT_DATE . "):";
?>
</td>
	<td><?php 
echo CalendarPeriod("find_date1", $find_date1, "find_date2", $find_date2, "find_form", "Y");
?>
</td>
</tr>
<tr valign="top">
	<td><?php 
echo GetMessage("STAT_F_EVENTS");
?>
<br><IMG SRC="/bitrix/images/statistic/mouse.gif" WIDTH="44" HEIGHT="21" BORDER=0 ALT=""></td>
	<td><?php 
echo SelectBoxMFromArray("find_events[]", array("REFERENCE" => $find_events_names, "REFERENCE_ID" => $find_events), false, "", false, "11", 'id="find_events[]"');
?>
	<script language="Javascript">
	function selectEventType(form, field)
	{
		jsUtils.OpenWindow('event_multiselect.php?target_control=select&lang=<?php 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:event_graph_list.php

示例7: GetMessage

}
?>
><?php 
echo GetMessage("FM_FLT_TOPIC");
?>
</option>
		</select>
		</td>
	</tr>
	<tr valign="center">
		<td><?php 
echo GetMessage("FM_FLT_START_DATE") . ":";
?>
</td>
		<td><?php 
echo CalendarPeriod("DATE_FROM_S", $DATE_FROM_S, "DATE_TO_S", $DATE_TO_S, "form1", "Y");
?>
</td>
	</tr>
	<tr valign="center">
		<td><?php 
echo GetMessage("FM_FLT_SUBSCR_TYPE");
?>
:</td>
		<td>
		<select name="SUBSCR_TYPE_S">
			<option value=""<?php 
if ($SUBSCR_TYPE_S == "") {
    echo " selected";
}
?>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:forum_subscribe_edit.php

示例8: GetMessage

	<td><?php 
echo GetMessage("POST_F_DATE_SENT") . " (" . FORMAT_DATE . "):";
?>
</td>
	<td><?php 
echo CalendarPeriod("find_date_sent_1", $find_date_sent_1, "find_date_sent_2", $find_date_sent_2, "find_form", "Y");
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("POST_F_AUTO_SEND_TIME") . " (" . FORMAT_DATE . "):";
?>
</td>
	<td><?php 
echo CalendarPeriod("find_auto_send_time_1", $find_auto_send_time_1, "find_auto_send_time_2", $find_auto_send_time_2, "find_form", "Y");
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("POST_F_STATUS");
?>
:</td>
	<td>
		<input type="text" name="find_status" size="47" value="<?php 
echo htmlspecialcharsbx($find_status);
?>
">&nbsp;<?php 
echo ShowFilterLogicHelp();
?>
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:posting_admin.php

示例9: GetMessage

		<td><?php 
echo GetMessage("BUYER_F_LAST_ORDER_DATE") . ":";
?>
</td>
		<td><?php 
echo CalendarPeriod("find_last_order_date_1", htmlspecialcharsbx($find_last_order_date_1), "find_last_order_date_2", htmlspecialcharsbx($find_last_order_date_2), "find_form", "Y");
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("BUYER_ROW_DATE_REGISTER") . ":";
?>
</td>
		<td><?php 
echo CalendarPeriod("filter_register_date_1", htmlspecialcharsbx($filter_register_date_1), "filter_register_date_2", htmlspecialcharsbx($filter_register_date_2), "find_form", "Y");
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("BUYER_F_GROUP");
?>
:</td>
		<td>
			<?php 
$z = CGroup::GetDropDownList("AND ID!=2");
echo SelectBoxM("filter_group[]", $z, $filter_group, "", false, 5);
?>
		</td>
	</tr>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:buyers.php

示例10: CalendarPeriod

    }
    /************** For custom ****************************************/
    $arResult["filter"]["date_last_visit"] = CalendarPeriod("date_last_visit1", $_REQUEST["date_last_visit1"], "date_last_visit2", $_REQUEST["date_last_visit2"], "form1", "Y", "", "");
    $arResult["filter"]["~user_name"] = $_REQUEST["user_name"];
    $arResult["filter"]["user_name"] = htmlspecialcharsbx($_REQUEST["user_name"]);
    /************** For custom/****************************************/
} elseif (strLen($_REQUEST["del_filter"]) > 0) {
    unset($_REQUEST["user_name"]);
    unset($_REQUEST["date_last_visit2"]);
    unset($_REQUEST["date_last_visit1"]);
    unset($_REQUEST["avatar"]);
    unset($_REQUEST["sort"]);
    /************** For custom ****************************************/
    unset($GLOBALS["date_last_visit1_DAYS_TO_BACK"]);
    $arResult["filter"] = array();
    $arResult["filter"]["date_last_visit"] = CalendarPeriod("date_last_visit1", "", "date_last_visit2", "", "form1", "Y", "", "");
    /************** For custom/****************************************/
}
if (!$by && !is_set($_REQUEST, "sort")) {
    $by = "NUM_POSTS";
    $order = "DESC";
    $_REQUEST["sort"] = "NUM_POSTS";
} elseif (!$by && is_set($_REQUEST, "sort")) {
    $by = $_REQUEST["sort"];
    $order = $_REQUEST["sort"] == "SHOW_ABC" ? "ASC" : "DESC";
}
/******************************************************************/
$arResult["ERROR_MESSAGE"] = $strError;
CPageOption::SetOptionString("main", "nav_page_in_session", "N");
$db_res = CForumUser::GetList(array($by => $order), $arFilter, array("bDescPageNumbering" => false, "nPageSize" => $arParams["USERS_PER_PAGE"], "bShowAll" => false, "sNameTemplate" => $arParams["NAME_TEMPLATE"]));
$arParams["SHOW_USER_STATUS"] = "Y";
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例11: GetMessage

?>

<form name="find_form" method="GET" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?">
<?
$oFilter->Begin();
?>
<tr>
	<td><?echo GetMessage("LOL_METRIKA_COUNTER")?>:</td>
	<td><?echo SelectBoxFromArray("find_counter_id", $arCounterDropdown, $find_counter_id, "", "");?></td>
</tr>
<tr>
	<td><?echo GetMessage("LOL_METRIKA_PERIOD")." (".FORMAT_DATE."):"?></td>
	<td><?echo CalendarPeriod("find_date1", $find_date1, "find_date2", $find_date2, "find_form", "Y")?></td>
</tr>
<tr valign="top">
	<td><?php 
echo GetMessage("LOL_METRIKA_SHOW");
?>
:</td>
	<td>
		<?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");
开发者ID:ASDAFF,项目名称:bitrix-yandex-metrika,代码行数:31,代码来源:traffic_summary.php

示例12: GetMessage

		<td><b><?echo GetMessage("IBLOCK_ELSEARCH_IBLOCK")?></b></td>
		<td><?echo GetIBlockDropDownListEx($IBLOCK_ID, "filter_type", "filter_iblock_id", array('MIN_PERMISSION' => 'S'));?></td>
	</tr>

	<tr>
		<td><?echo GetMessage("IBLOCK_ELSEARCH_FROMTO_ID")?></td>
		<td>
			<input type="text" name="filter_id_start" size="10" value="<?echo htmlspecialcharsex($filter_id_start)?>">
			...
			<input type="text" name="filter_id_end" size="10" value="<?echo htmlspecialcharsex($filter_id_end)?>">
		</td>
	</tr>

	<tr>
		<td  nowrap><? echo GetMessage("IBLOCK_FIELD_TIMESTAMP_X").":"?></td>
		<td nowrap><? echo CalendarPeriod("filter_timestamp_from", htmlspecialcharsex($filter_timestamp_from), "filter_timestamp_to", htmlspecialcharsex($filter_timestamp_to), "form1")?></td>
	</tr>

	<tr>
		<td nowrap><?php 
echo GetMessage("IBLOCK_FIELD_MODIFIED_BY");
?>
:</td>
		<td>
			<?echo FindUserID(
				/*$tag_name=*/"filter_modified_user_id",
				/*$tag_value=*/$filter_modified_user_id,
				/*$user_name=*/"",
				/*$form_name=*/"form1",
				/*$tag_size=*/"5",
				/*$tag_maxlength=*/"",
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_search.php

示例13: InputType

?>
"><?php 
echo InputType("checkbox", "find_sid_exact_match", "Y", $find_sid_exact_match, false, "", "title='" . GetMessage("AD_EXACT_MATCH") . "'");
?>
&nbsp;<?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("AD_F_DATE_MODIFY") . " (" . CSite::GetDateFormat("SHORT") . "):";
?>
</td>
	<td><?php 
echo CalendarPeriod("find_date_modify_1", $find_date_modify_1, "find_date_modify_2", $find_date_modify_2, "form1", "Y");
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("AD_F_ACTIVE");
?>
:</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("AD_YES"), GetMessage("AD_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_active", $arr, htmlspecialcharsbx($find_active), GetMessage('AD_ALL'));
?>
</td>
</tr>
<tr>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:adv_type_list.php

示例14: InputType

if ($isEditMode) {
    echo InputType("checkbox", "ACTIVE", "Y", $str_ACTIVE, false, "", 'id="ACTIVE"');
} else {
    echo $str_ACTIVE == "Y" ? GetMessage("AD_YES") : GetMessage("AD_NO");
}
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("AD_SHOW_INTERVAL") . ":";
?>
</td>
		<td><?php 
if ($isEditMode) {
    echo CalendarPeriod("DATE_SHOW_FROM", $str_DATE_SHOW_FROM, "DATE_SHOW_TO", $str_DATE_SHOW_TO, "bx_adv_edit_form", "N", "", "", 20);
} else {
    if (strlen($str_DATE_SHOW_FROM) > 0) {
        echo GetMessage("AD_FROM");
        ?>
&nbsp;<b><?php 
        echo $str_DATE_SHOW_FROM;
        ?>
</b>&nbsp;<?php 
    }
    if (strlen($str_DATE_SHOW_TO) > 0) {
        echo GetMessage("AD_TILL");
        ?>
&nbsp;<b><?php 
        echo $str_DATE_SHOW_TO;
        ?>
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:adv_banner_edit.php

示例15: GetMessage

	</tr>

	<tr>
		<td><?echo GetMessage("SALE_F_ALLOW_DELIVERY")?>:</td>
		<td>
			<select name="filter_allow_delivery">
				<option value=""><?echo GetMessage("SALE_F_ALL")?></option>
				<option value="Y"<?if ($filter_allow_delivery=="Y") echo " selected"?>><?echo GetMessage("SALE_YES")?></option>
				<option value="N"<?if ($filter_allow_delivery=="N") echo " selected"?>><?echo GetMessage("SALE_NO")?></option>
			</select>
		</td>
	</tr>
	<tr>
		<td><?echo GetMessage("SALE_F_DATE_ALLOW_DELIVERY");?>:</td>
		<td>
			<?echo CalendarPeriod("filter_date_delivery_from", $filter_date_delivery_from, "filter_date_delivery_to", $filter_date_delivery_to, "find_form", "Y")?>
		</td>
	</tr>
	<tr>
		<td><?echo GetMessage("SALE_F_PS_STATUS")?>:</td>
		<td>
			<select name="filter_ps_status">
				<option value=""><?echo GetMessage("SALE_F_ALL")?></option>
				<option value="Y"<?if ($filter_ps_status=="Y") echo " selected"?>><?echo GetMessage("SALE_YES")?></option>
				<option value="N"<?if ($filter_ps_status=="N") echo " selected"?>><?echo GetMessage("SALE_NO")?></option>
				<option value="X"<?if ($filter_ps_status=="X") echo " selected"?>><?echo GetMessage("SALE_YES_NO")?></option>
			</select>
		</td>
	</tr>
	<tr>
		<td><?echo GetMessage("SALE_F_PERSON_TYPE");?>:</td>
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order.php


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