static function findAllOption() { $tempRecords = self::findAll(); foreach ($tempRecords as $tempRecord) { fHTML::printOption($tempRecord->prepareId(), $tempRecord->prepareId()); } }
static function findCurrentMonthOption($month, $year) { $tempRecords = self::findCurrentMonth($month, $year); foreach ($tempRecords as $tempRecord) { fHTML::printOption($tempRecord->prepareCountry() . " [" . $tempRecord->prepareExchange(2) . "]", $tempRecord->prepareId(), null); } }
static function findOptionByMainCategoryCode($key) { $tempRecords = self::findByMainCategoryCode($key); foreach ($tempRecords as $tempRecord) { fHTML::printOption($tempRecord->prepareDescription() . " [" . $tempRecord->prepareCategoryCode() . "]", $tempRecord->prepareId()); } }
static function findAllOption($default = null) { $tempRecords = self::findAll(); foreach ($tempRecords as $tempRecord) { fHTML::printOption($tempRecord->prepareName(), $tempRecord->prepareId(), $default); } }
static function findAllOption() { $tempRecords = self::findAll(); foreach ($tempRecords as $tempRecord) { fHTML::printOption($tempRecord->prepareDescription() . " [" . $tempRecord->prepareCategoryCode() . "]", $tempRecord->prepareCategoryCode()); } }
</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(); ?>" />
<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>
</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>
?> " /> </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>
<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>
<? 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>
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 }
$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>
<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');
" /> <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');