• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP func_fill_month函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: func_fill_month

		  </td>
	  </tr>
      <tr>
	              <td height="30" valign="middle" align="left" width="118"><font face="verdana" size="1"> 
                    <?php 
echo $endperiodstring;
?>
                    </font></td>
	      <td align="left" width="225"  height="30"  nowrap>&nbsp; 
                    <!--<input type="text" name="txtDate1" style="font-family:verdana;font-size:10px;WIDTH: 140px" value=<?php 
echo $dateval2;
?>
></input>&nbsp;&nbsp;<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)">
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:export.php


示例2: func_fill_month

    <td height="22" align="center" valign="middle" width="50%" background="images/menucenterbg.gif" ><span class="whitehd">Invoice
      Report
    </span></td>
    <td height="22" align="left" valign="top" width="3%" nowrap><img border="0" src="images/menutopcurve.gif" width="49" height="22"></td>
    <td height="22" align="left" valign="top" width="45%" background="images/menutoprightbg.gif" ><img alt="" src="images/spacer.gif" width="1" height="1"></td>
    <td height="22" align="right" valign="top" background="images/menutoprightbg.gif"  width="1%" nowrap><img border="0" src="images/menuright.gif" width="10" height="22"></td>
  </tr>
  <tr>
    <td class="lgnbd" colspan="5" height="10">
	
	<form action="" method="GET" name="FrmMerchant" >
  <table border="0"  align="center" cellpadding="2">
    <tr valign="middle" >     
	 <td width="102" align="right"  valign="middle"><select name="cbo_from_month" >
          <?php 
func_fill_month($str_month_from);
?>
      </select></td>
      <td ><select name="cbo_from_year">
          <?php 
func_fill_year($str_year_from, $i_start_year, $i_end_year);
?>
      </select></td>
      <td width="127"><input type="image" name="add" SRC="<?php 
echo $tmpl_dir;
?>
/images/submit.jpg"></td>
    </tr>
	<tr>
	<td colspan="4"><select name="show_rollover" id="show_rollover" >
	  <option value="a" <?php 
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:Copy+of+ResellerPaymentReport.php


示例3: func_get_date_inmmddyy

						  <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php 
        echo func_get_date_inmmddyy($strOrderDate);
        ?>
</font></td>
						</tr>
						<tr> 
						  <td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Bill 
							  Date</font></div></td>
						  <td>&nbsp;</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 {
            ?>
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:Copy+of+searchresult.php


示例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}&nbsp;", "input" => $options);
                } else {
                    $frm_entity[] = array("name" => "&nbsp;", "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}&nbsp;", "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}&nbsp;", "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}&nbsp;</b>", "input" => "{$month_html}&nbsp;{$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}&nbsp;", "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}&nbsp;", "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}&nbsp;", "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}&nbsp;", "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;
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:101,代码来源:smart_search.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP func_fill_year函数代码示例发布时间:2022-05-15
下一篇:
PHP func_fill_day函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap