本文整理汇总了PHP中func_fill_day函数的典型用法代码示例。如果您正苦于以下问题:PHP func_fill_day函数的具体用法?PHP func_fill_day怎么用?PHP func_fill_day使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了func_fill_day函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: func_fill_month
echo $endperiodstring;
?>
</font></td>
<td align="left" width="225" height="30" nowrap>
<!--<input type="text" name="txtDate1" style="font-family:verdana;font-size:10px;WIDTH: 140px" value=<?php
echo $dateval2;
?>
></input> <input style="font-family:verdana;font-size:10px;" type="button" value="..." onclick="init1()">-->
<select name="opt_to_month" class="lineborderselect" style="font-size:10px">
<?php
func_fill_month($i_to_month);
?>
</select>
<select name="opt_to_day" class="lineborderselect" style="font-size:10px">
<?php
func_fill_day($i_to_day);
?>
</select>
<select name="opt_to_year" class="lineborderselect" style="font-size:10px">
<?php
func_fill_year($i_to_year);
?>
</select>
<input type="hidden" name="from_to" size="17" style="font-family: Verdana; font-size: 8pt; border: 1 solid " value="">
<input style="font-family:verdana;font-size:10px;" type="button" value="..." onclick="init(380,140,document.exporter.from_to)">
</td>
</tr>
<tr><td colspan="2" align="center" valign="middle">
<table cellpadding="0" cellspacing="0" border="0"width="100%">
<tr>
示例2: func_fill_month
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Bill
Date</font></div></td>
<td> </td>
<td>
<?php
if ($str_cancel_status == "N" && $strApprovalStatus == "" && func_is_future_date($strBillDate)) {
?>
<select name="opt_bill_month" style="font-size:10px">
<?php
func_fill_month($i_bill_month);
?>
</select>
<select name="opt_bill_day" class="lineborderselect" style="font-size:10px">
<?php
func_fill_day($i_bill_day);
?>
</select>
<select name="opt_bill_year" style="font-size:10px">
<?php
func_fill_year($i_bill_year);
?>
</select>
<?php
} else {
?>
<font size='1' face='Verdana, Arial, Helvetica, sans-serif'><?php
print $i_bill_month;
?>
-<?php
print $i_bill_day;
示例3: func_fill_day
echo $subAcc['recur_charge'];
?>
" size='12'>
</font></span> </td>
</tr>
<!--modification to include recurring details -->
<tr>
<td align="right" valign="center" height="10"> </td>
<td><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">Enter the Recurring Billing Schedule by which the customer will be billed. You may select this by day or by month. The customer will be charged the Recurring Amount by this schedule. </font></td>
</tr>
<tr>
<td align="right" valign="middle" class="tdbdr1" height="30"> </td>
<td valign="middle" class="tdbdr"><font size="1" face="Verdana" color="#000000"> Every <span class="tdbdr1">
<select name="recur_day" class="lineborderselect" id="recur_day" style="font-size:10px">
<?php
func_fill_day($subAcc['recur_day'], 90, false, true);
?>
</select>
</span></font> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" align="right" valign="center"><font face="verdana" size="2">Description:<font size="1"><br>
(Not Required- This will appear on the product's payment form)</font></font></td>
<td height="30" align="left" valign="top"><textarea name="txt_description" cols="35" rows="2" id="txt_description"><?php
echo $subAcc['rd_description'];
?>
</textarea> </td>
</tr>
示例4: smart_search_elements
//.........这里部分代码省略.........
$checked = "checked";
}
$options .= (!($chkcnt++ % 4) && $chkcnt != 1 ? "<BR>" : "") . "<input {$action} {$style} type='checkbox' id='{$this_element}' name='" . $this_element . "[]' value=\"" . $pair['value'] . "\" {$checked}>" . $pair['display'] . "</input>\r\n";
}
}
if ($pairs != NULL) {
$frm_entity[] = array("name" => "{$display} ", "input" => $options);
} else {
$frm_entity[] = array("name" => " ", "input" => $options);
}
break;
case "between":
if ($display != "") {
$displayb = "<b>{$display} To:</b>";
} else {
$displayb = "";
}
if ($display != "") {
$display = "<b>{$display} From:</b>";
}
$frm_entity[] = array("name" => "{$display} ", "input" => "<input {$action} {$style} type='text' id='" . $this_element . "_to' name='" . $this_element . "_from' value=\"" . (isset($_REQUEST[$this_element . "_from"]) ? $_REQUEST[$this_element . "_from"] : date("Y-m-d 00:00:00")) . "\"></input>");
$frm_entity[] = array("name" => "{$displayb} ", "input" => "<input {$action} {$style} type='text' id='" . $this_element . "_from' name='" . $this_element . "_to' value=\"" . (isset($_REQUEST[$this_element . "_to"]) ? $_REQUEST[$this_element . "_to"] : date("Y-m-d 23:59:59")) . "\"></input>");
break;
case "date_simple":
$sel_month = isset($_REQUEST[$this_element . "_month"]) ? $_REQUEST[$this_element . "_month"] : date("n");
$sel_year = isset($_REQUEST[$this_element . "_year"]) ? $_REQUEST[$this_element . "_year"] : date("Y");
$months = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "\r\n\t\t\t\t\t\t\tOctober", "November", "December");
$min_year = !isset($values['min_year']) ? date("Y") - 10 : $values['min_year'];
$max_year = !isset($values['max_year']) ? date("Y") + 2 : $values['max_year'];
for ($j = $min_year; $j < $max_year; $j++) {
$years[$j] = 1;
}
$month_html = "<select name='" . $this_element . "_month'>";
foreach ($months as $index => $month) {
if ($index + 1 != $sel_month) {
$month_html .= "<option value='" . ($index + 1) . "'>{$month}</option>";
} else {
$month_html .= "<option selected value='" . ($index + 1) . "'>{$month}</option>";
}
}
$month_html .= "</select>";
$year_html = "<select name='" . $this_element . "_year'>";
foreach ($years as $year => $value) {
if ($sel_year != $year) {
$year_html .= "<option value='{$year}'>{$year}</option>";
} else {
$year_html .= "<option selected value='{$year}'>{$year}</option>";
}
}
$year_html .= "</select>";
$frm_entity[] = array("name" => "<b>{$display} </b>", "input" => "{$month_html} {$year_html}");
break;
case "date":
if ($display != "") {
$displayb = "<b>{$display} To:</b>";
} else {
$displayb = "";
}
if ($display != "") {
$display = "<b>{$display} From:</b>";
}
if (!isset($values['default_from'])) {
$values['default_from'] = time();
}
if (!isset($values['default_to'])) {
$values['default_to'] = time();
}
$from_value = isset($_REQUEST[$this_element . "_from"]) ? $_REQUEST[$this_element . "_from"] : date("n/j/Y", $values['default_from']);
$to_value = isset($_REQUEST[$this_element . "_to"]) ? $_REQUEST[$this_element . "_to"] : date("n/j/Y", $values['default_to']);
if ($to_value == "" || $from_value == "") {
break;
}
$this_time = strtotime($from_value);
$options_years = func_fill_year(isset($_REQUEST[$this_element . "_from_year"]) ? $_REQUEST[$this_element . "_from_year"] : date("Y", $this_time), true);
$options_months = func_fill_month(isset($_REQUEST[$this_element . "_from_month"]) ? $_REQUEST[$this_element . "_from_month"] : date("n", $this_time), true);
$options_days = func_fill_day(isset($_REQUEST[$this_element . "_from_day"]) ? $_REQUEST[$this_element . "_from_day"] : date("j", $this_time), 32, true);
$frm_entity[] = array("name" => "{$display} ", "input" => "\r\n\t\t\t\t\t\t<script language=\"javascript\">\r\n\t\t\t\t\t\t\tfunction func_returnselectedindex(par_selected)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tvar dt_new = new Date();\r\n\t\t\t\t\t\t\t\tvar str_year = dt_new.getFullYear()\r\n\t\t\t\t\t\t\t\tfor(i=2003,j=0;i<str_year+10;i++,j++)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif (i==par_selected)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\treturn j;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfunction addvalue(dateSelected,monthSelected,yearSelected,obj_element)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif (obj_element.name == \"" . $this_element . "_from\")\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_from_day.selectedIndex = dateSelected-1 ;\r\n\t\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_from_month.selectedIndex = monthSelected ;\r\n\t\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_from_year.selectedIndex = func_returnselectedindex(yearSelected) ;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (obj_element.name == \"" . $this_element . "_to\")\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_to_day.selectedIndex = dateSelected-1 ;\r\n\t\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_to_month.selectedIndex = monthSelected ;\r\n\t\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_to_year.selectedIndex = func_returnselectedindex(yearSelected) ;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfunction func_" . $this_element . "_from()\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tvar year = document.search_form." . $this_element . "_from_year.value;\r\n\t\t\t\t\t\t\t\tvar month = document.search_form." . $this_element . "_from_month.value;\r\n\t\t\t\t\t\t\t\tvar day = document.search_form." . $this_element . "_from_day.value;\r\n\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_from.value = month + '/' + day + '/' + year;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</script>\r\n\t\t\t\t\t\t<select onChange=\"func_" . $this_element . "_from()\" id=\"" . $this_element . "_from_month\" name=\"" . $this_element . "_from_month\" style=\"font-size:10px\" disableOnSubmit='1' >\r\n\t\t\t\t\t\t{$options_months}\r\n\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t<select onChange=\"func_" . $this_element . "_from()\" id=\"" . $this_element . "_from_day\" name=\"" . $this_element . "_from_day\" class=\"lineborderselect\" style=\"font-size:10px\" disableOnSubmit='1'>\r\n\t\t\t\t\t\t{$options_days}\r\n\t\t\t\t\t\t</select> \r\n\t\t\t\t\t\t<select onChange=\"func_" . $this_element . "_from()\" id=\"" . $this_element . "_from_year\" name=\"" . $this_element . "_from_year\" style=\"font-size:10px\" disableOnSubmit='1'>\r\n\t\t\t\t\t\t{$options_years}\r\n\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t<input type=\"hidden\" id='" . $this_element . "_from' name='" . $this_element . "_from' size=\"17\" value=\"" . $from_value . "\">\r\n\t\t\t\t\t\t<input style=\"font-family:verdana;font-size:10px;\" type=\"button\" value=\"...\" onclick=\"init(\$F('MousePointX'),\$F('MousePointY'),\$('" . $this_element . "_from'))\">\r\n\t\t\t\t\t\t");
$this_time = strtotime($to_value);
$options_years = func_fill_year(isset($_REQUEST[$this_element . "_to_year"]) ? $_REQUEST[$this_element . "_to_year"] : date("Y", $this_time), true);
$options_months = func_fill_month(isset($_REQUEST[$this_element . "_to_month"]) ? $_REQUEST[$this_element . "_to_month"] : date("n", $this_time), true);
$options_days = func_fill_day(isset($_REQUEST[$this_element . "_to_day"]) ? $_REQUEST[$this_element . "_to_day"] : date("j", $this_time), 32, true);
$frm_entity[] = array("name" => "{$displayb} ", "input" => "\r\n\t\t\t\t\t\t<script language=\"javascript\">\r\n\t\t\t\t\t\t\tfunction func_" . $this_element . "_to()\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tvar year = document.search_form." . $this_element . "_to_year.value;\r\n\t\t\t\t\t\t\t\tvar month = document.search_form." . $this_element . "_to_month.value;\r\n\t\t\t\t\t\t\t\tvar day = document.search_form." . $this_element . "_to_day.value;\r\n\t\t\t\t\t\t\t\tdocument.search_form." . $this_element . "_to.value = month + '/' + day + '/' + year;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t</script>\t\t\t\t\t\t\r\n\t\t\t\t\t\t<select onChange=\"func_" . $this_element . "_to()\" id=\"" . $this_element . "_to_month\" name=\"" . $this_element . "_to_month\" style=\"font-size:10px\" disableOnSubmit='1'>\r\n\t\t\t\t\t\t{$options_months}\r\n\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t<select onChange=\"func_" . $this_element . "_to()\" id=\"" . $this_element . "_to_day\" name=\"" . $this_element . "_to_day\" class=\"lineborderselect\" style=\"font-size:10px\" disableOnSubmit='1'>\r\n\t\t\t\t\t\t{$options_days}\r\n\t\t\t\t\t\t</select> \r\n\t\t\t\t\t\t<select onChange=\"func_" . $this_element . "_to()\" id=\"" . $this_element . "_to_year\" name=\"" . $this_element . "_to_year\" style=\"font-size:10px\" disableOnSubmit='1'>\r\n\t\t\t\t\t\t{$options_years}\r\n\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t<input type=\"hidden\" id='" . $this_element . "_to' name='" . $this_element . "_to' size=\"17\" value=\"" . $to_value . "\">\r\n\t\t\t\t\t\t<input style=\"font-family:verdana;font-size:10px;\" type=\"button\" value=\"...\" onclick=\"init(\$F('MousePointX'),\$F('MousePointY'),\$('" . $this_element . "_to'))\">\r\n\t\t\t\t\t\t");
break;
case "textarea":
if ($display != "") {
$display = "<b>{$display}:</b>";
}
$frm_entity[] = array("name" => "{$display} ", "input" => "<textarea {$action} {$style} id='{$this_element}' name='{$this_element}' {$style}>" . (isset($_REQUEST[$this_element]) ? $_REQUEST[$this_element] : $values['value']) . "</textarea>");
break;
case "text":
default:
if ($display != "") {
$display = "<b>{$display}:</b>";
}
$frm_entity[] = array("name" => "{$display} ", "input" => "<input {$action} {$style} type='text' id='{$this_element}' name='{$this_element}' value=\"" . (isset($_REQUEST[$this_element]) ? $_REQUEST[$this_element] : $values['value']) . "\"></input>");
break;
}
}
return $frm_entity;
}