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


PHP fHTML::printOption方法代码示例

本文整理汇总了PHP中fHTML::printOption方法的典型用法代码示例。如果您正苦于以下问题:PHP fHTML::printOption方法的具体用法?PHP fHTML::printOption怎么用?PHP fHTML::printOption使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在fHTML的用法示例。


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

示例1: findAllOption

 static function findAllOption()
 {
     $tempRecords = self::findAll();
     foreach ($tempRecords as $tempRecord) {
         fHTML::printOption($tempRecord->prepareId(), $tempRecord->prepareId());
     }
 }
开发者ID:JhunCabas,项目名称:material-management,代码行数:7,代码来源:Document_type.php

示例2: findCurrentMonthOption

 static function findCurrentMonthOption($month, $year)
 {
     $tempRecords = self::findCurrentMonth($month, $year);
     foreach ($tempRecords as $tempRecord) {
         fHTML::printOption($tempRecord->prepareCountry() . " [" . $tempRecord->prepareExchange(2) . "]", $tempRecord->prepareId(), null);
     }
 }
开发者ID:JhunCabas,项目名称:material-management,代码行数:7,代码来源:Currency.php

示例3: findOptionByMainCategoryCode

 static function findOptionByMainCategoryCode($key)
 {
     $tempRecords = self::findByMainCategoryCode($key);
     foreach ($tempRecords as $tempRecord) {
         fHTML::printOption($tempRecord->prepareDescription() . " [" . $tempRecord->prepareCategoryCode() . "]", $tempRecord->prepareId());
     }
 }
开发者ID:JhunCabas,项目名称:material-management,代码行数:7,代码来源:Inv_subcategory.php

示例4: findAllOption

 static function findAllOption($default = null)
 {
     $tempRecords = self::findAll();
     foreach ($tempRecords as $tempRecord) {
         fHTML::printOption($tempRecord->prepareName(), $tempRecord->prepareId(), $default);
     }
 }
开发者ID:JhunCabas,项目名称:material-management,代码行数:7,代码来源:Branch.php

示例5: findAllOption

 static function findAllOption()
 {
     $tempRecords = self::findAll();
     foreach ($tempRecords as $tempRecord) {
         fHTML::printOption($tempRecord->prepareDescription() . " [" . $tempRecord->prepareCategoryCode() . "]", $tempRecord->prepareCategoryCode());
     }
 }
开发者ID:JhunCabas,项目名称:material-management,代码行数:7,代码来源:Inv_maincategory.php

示例6: array

       </div>
     </div><!-- /clearfix -->
     <div class="clearfix">
       <label for="dashboard-description">Description<em>*</em></label>
       <div class="input">             
          <textarea class="span3" id="dashboard-description" name="description" rows="3"><?=$dashboard->encodeDescription(); ?></textarea>
       </div>
     </div><!-- /clearfix -->
     <div class="clearfix">
       <label for="dashboard-columns">Columns<em>*</em></label>
       <div class="input">
         <select name="columns" class="span3">
         <?
          $columns = array('1' => '1', '2'   => '2', '3' => '3');
          foreach ($columns as $value => $text) {
            fHTML::printOption($text, $value, $dashboard->getColumns());
          }
         ?>
         </select>            
       </div>
     </div><!-- /clearfix -->
 <div class="clearfix">
       <label for="dashboard-graph_width">Graph Width<em>*</em></label>
       <div class="input">             
          <input id="dashboard-graph_width" class="span3" type="text" size="30" name="graph_width" value="<?=$dashboard->encodeGraphWidth(); ?>" />
       </div>
     </div><!-- /clearfix -->
 <div class="clearfix">
       <label for="dashboard-graph_height">Graph Height<em>*</em></label>
       <div class="input">             
          <input id="dashboard-graph_height"  class="span3" type="text" size="30" name="graph_height" value="<?=$dashboard->encodeGraphHeight(); ?>" />
开发者ID:nleskiw,项目名称:Graphite-Tattle,代码行数:31,代码来源:add_edit_dashboard.php

示例7: foreach

                <select name="over_under" class="span3">
                <?
                  foreach ($over_under_array as $value => $text) {
                    fHTML::printOption($text, $value, $check->getOverUnder());
                  }
                ?>
                </select>
              </div>
            </div><!-- /clearfix -->
	    <div class="clearfix">
	     <label for="check-visibility">Visibility<em>*</em></label>
             <div class="input">
               <select name="visibility" class="span3">
               <?
                foreach ($visibility_array as $value => $text) {
                  fHTML::printOption($text, $value, $check->getVisibility());
                }
               ?>
               </select>            
             </div>
           </div><!-- /clearfix -->
	   <div class="clearfix">
	     <label for="check-repeat_delay">Repeat Delay<em>*</em></label>
             <div class="input">
               <?php 
               $check_delay = (is_null($check->getRepeatDelay()) ? 30 : $check->encodeRepeatDelay()); ?>
	       <input id="check-repeat_delay" class="span3" type="text" size="20" name="repeat_delay" value="<?=$check_delay; ?>" />
	     </div>		   
           </div><!-- /clearfix -->     
           </fieldset>
           <fieldset>
开发者ID:nleskiw,项目名称:Graphite-Tattle,代码行数:31,代码来源:add_edit.php

示例8: array

</p>
            <p>Target : <?php 
    echo Check::constructTarget($check);
    ?>
</p>
            <p id="graphiteGraph"><?php 
    echo Check::showGraph($check);
    ?>
</p>
            <div class="row">
	        	<div class="col-md-4">
		            <select id="graphiteDateRange" class="form-control">
		              <?php 
    $dateRange = array('-12hours' => '12 Hours', '-1days' => '1 Day', '-3days' => '3 Days', '-7days' => '7 Days', '-14days' => '14 Days', '-30days' => '30 Days', '-60days' => '60 Days');
    foreach ($dateRange as $value => $text) {
        fHTML::printOption($text, $value, '-3days');
    }
    ?>
		            </select>
		        </div>
	        	<div class="col-md-4">
		            <input class="btn btn-primary" type="submit" value="Reload Graph" onClick="reloadGraphiteGraph()"/>
		        </div>
	        </div>
          </fieldset>
        </div>
      <?php 
}
?>
    </div>
</div>
开发者ID:nagyist,项目名称:Tattle,代码行数:31,代码来源:add_edit_predictive_check.php

示例9: Rate

?>
" />
            </div>
	    <div class="form-group">
             <label for="dashboard-refresh_rate">Refresh Rate (in seconds)</label>
               <input id="dashboard-refresh_rate" class="form-control" type="text" size="30" name="refresh_rate" value="<?php 
echo $dashboard->getRefreshRate();
?>
" />
            </div>
            <div class="form-group">
            	<label for="dashboard-group">Group</label>
            		<select name="group_id" class="form-control">
            			<?php 
foreach (Group::findAll() as $group) {
    fHTML::printOption($group->getName(), $group->getGroupId(), $action == 'add' ? $filter_group_id : $dashboard->getGroupId());
}
?>
            		</select>
            </div>
            <div class="actions">
	      <input class="btn btn-primary" type="submit" value="Save" />
              <input class="btn btn-default" type="submit" name="action::delete" value="Delete" onclick="return confirm('Do you really want to delete this dashboard ?');" />
              <a href="<?php 
echo Dashboard::makeUrl('view', $dashboard);
?>
" class="btn btn-default">View</a>
              <a href="<?php 
echo Dashboard::makeURL('export', $dashboard);
?>
" target="_blank" class="btn btn-default">Export</a>
开发者ID:nagyist,项目名称:Tattle,代码行数:31,代码来源:add_edit_dashboard.php

示例10: range

              	<div class="col-md-6">
                <select name="time_value" class="form-control">
                <?php 
$values = range(0, 60);
foreach ($values as $value) {
    fHTML::printOption($value, $value, $graph->getTime_value());
}
?>
                </select>
                </div>
                <div class="col-md-6">
                <select name="unit" class="form-control col-xs-2">
                <?php 
$units = array('minutes', 'hours', 'days', 'weeks', 'months', 'years');
foreach ($units as $value) {
    fHTML::printOption($value, $value, $graph->getUnit());
}
?>
                </select>
                </div>
                </div>
            </div>
            
            <div class="checkbox">
            	<label>
           			<input type="checkbox" name="starts_at_midnight" <?php 
echo $graph->getStartsAtMidnight() ? 'checked="checked"' : '';
?>
 value="true"> Starts at midnight
           		</label>
           	</div>
开发者ID:nagyist,项目名称:Tattle,代码行数:31,代码来源:add_edit_graph.php

示例11: foreach

                <?
                  foreach ($send_methods as $value => $text) {
                    fHTML::printOption($text, $value, $subscription->getMethod());
                  }
                ?>
                </select>
              </div>
            </div><!-- /clearfix -->
            <div class="clearfix">
              <label for="check-status">Status<em>*</em></label>
              <div class="input">
                <select name="status" class="span3">
                <?
                 $statuses = array('0'   => 'Enabled', '1' => 'Disabled');
                 foreach ($statuses as $value => $text) {
                   fHTML::printOption($text, $value, $subscription->getStatus());
                 }
                ?>
                </select>            
              </div>
            </div><!-- /clearfix -->
	    <div class="actions">
	      <input class="btn primary" type="submit" value="Save" />
              <?php 
if ($action == 'edit') {
    ?>
 
                 <a class="btn" href="<?php 
    echo Subscription::makeUrl('delete', $subscription);
    ?>
">Delete</a>
开发者ID:nleskiw,项目名称:Graphite-Tattle,代码行数:31,代码来源:add_edit_subscription.php

示例12: array

echo $this->problem_id;
?>
">
    <select name="language" class="input-small search-query">
    <?php 
$languages = array('语言', 'C++', 'C', 'Java', 'Python');
foreach ($languages as $value => $text) {
    fHTML::printOption($text, $value, $this->language);
}
?>
    </select>
    <select name="verdict" class="input-medium search-query">
    <?php 
$verdicts = array('结果', '正确', '格式错误', '超过时间限制', '超过内存限制', '答案错误', '运行时错误', '超过输出限制', '编译错误', '系统错误', '校验错误');
foreach ($verdicts as $value => $text) {
    fHTML::printOption($text, $value, $this->verdict);
}
?>
    </select>
    <button type="submit" class="btn btn-primary">
      <i class="icon-filter icon-white"></i> 过滤
    </button>
    <?php 
if (strlen($this->owner) or strlen($this->problem_id) or !empty($this->language) or !empty($this->verdict)) {
    ?>
      <a class="btn" href="<?php 
    echo SITE_BASE;
    ?>
/status">取消</a>
    <?php 
}
开发者ID:daerduoCarey,项目名称:oj,代码行数:31,代码来源:index.php

示例13: array

                 $areaModes = array('none' => 'None', 'first' => 'First', 'stacked' => 'Stacked', 'all' => 'All');
                 foreach ($areaModes as $value => $text) {
                   fHTML::printOption($text, $value, $graph->getArea());
                 }
                ?>
                </select>            
              </div>
            </div><!-- /clearfix -->
            <div class="clearfix">
              <label for="graph-weight">Weight<em>*</em></label>
              <div class="input">
                <select name="weight" class="span3">
                <?
                 $weights = array(0,1,2,3,4,5,6,7,8,9,10);
                 foreach ($weights as $value) {
                   fHTML::printOption($value, $value, $graph->getWeight());
                 }
                ?>
                </select>            
              </div>
            </div><!-- /clearfix -->      
	    <div class="actions">
	      <input class="btn primary" type="submit" value="Save" />
              <input class="btn" type="submit" name="action::delete" value="Delete" />
              <a href="<?php echo Dashboard::makeUrl('view',$dashboard);?>" class="btn">View</a>
              <div class="required"><em>*</em> Required field</div>
	      <input type="hidden" name="token" value="<?php echo fRequest::generateCSRFToken() ?>" />
              <input type="hidden" name="user_id" value="<?php echo fSession::get('user_id'); ?>" />
            </div>
         </fieldset>
       </div>       
开发者ID:rberger,项目名称:Graphite-Tattle,代码行数:31,代码来源:add_edit_graph.php

示例14: foreach

	<input type="hidden" name="id" value="<?php 
echo $m->getId();
?>
" />

		<table class="form">

			<tr>
				<td class="caption"><label for="manufacturer_id">Manufacturer</label></td>
				<td class="input">
					<select name="manufacturer_id" id="manufacturer_id">
					<?php 
$option = '<option value="%d">%s</option>';
$selected = $action === 'add' ? fMessaging::retrieve('manufacturer_id', 'models/add') : $m->getManufacturerId();
foreach ($manufacturers as $mfr) {
    fHTML::printOption($mfr->getName(), $mfr->getId(), $selected);
}
?>
					</select>
				</td>
			</tr>

			<tr>
				<td class="caption"><label for="name">Name</label></td>
				<td class="input">
					<input id="name" type="text" name="name" value="<?php 
echo $m->getName();
?>
"
					maxlength="<?php 
echo $m->inspectName('max_length');
开发者ID:mrjwc,项目名称:printmaster,代码行数:31,代码来源:addedit.php

示例15: foreach

" />
	<input type="hidden" name="id" value="<?php 
echo $m->getId();
?>
" />
		
		<table class="form">
		
			<tr>
				<td class="caption"><label for="manufacturer_id">Manufacturer</label></td>
				<td class="input">
					<select name="manufacturer_id" id="manufacturer_id">
					<?php 
$option = '<option value="%d">%s</option>';
foreach ($manufacturers as $mfr) {
    fHTML::printOption($mfr->getName(), $mfr->getId(), $m->getManufacturerId());
}
?>
					</select>
				</td>
			</tr>
			
			<tr>
				<td class="caption"><label for="name">Name</label></td>
				<td class="input">
					<input id="name" type="text" name="name" value="<?php 
echo $m->getName();
?>
" 
					maxlength="<?php 
echo $m->inspectName('max_length');
开发者ID:hibble,项目名称:printmaster,代码行数:31,代码来源:addedit.php


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