function show_methods(Documenter $d, $type, $arr) { echo "<h3>{$type}</h3>"; foreach ($arr as $key => $value) { echo "<p><span class=\"keyword\">" . $d->getModifiers($value) . "</span> " . "<span class=\"name\">{$key}</span>\n"; //Добавляем параметры используя метод из ReflectionMethod $params = $value->getParameters(); $number = $value->getNumberOfParameters(); $counter = 0; echo "( "; foreach ($params as $p) { echo get_params($p); $counter++; if ($counter != $number) { echo ", "; } } echo " )"; if ($value->isUserDefined()) { echo " <span class=\"red\">пользовательский</span><br />"; } if ($value->getDocComment()) { echo "<span class=\"comment\">"; echo $value->getDocComment() . "</span><br />"; } echo "</p>"; } }
private function coverParams() { if (isset($this->params['cover']) === false) { $this->params['cover'] = get_params(Request::all(), 'forum_cover', ['forum_id:int', 'main_cover.cover_file:file', 'main_cover._delete:bool', 'default_topic_cover.cover_file:file', 'default_topic_cover._delete:bool']); $this->params['cover']['user_id'] = Auth::user()->user_id; } return $this->params['cover']; }
public function vote($id) { $discussion = BeatmapDiscussion::findOrFail($id); priv_check('BeatmapDiscussionVote', $discussion)->ensureCan(); $params = get_params(Request::all(), 'beatmap_discussion_vote', ['score:int']); $params['user_id'] = Auth::user()->user_id; if ($discussion->vote($params)) { return $discussion->beatmapsetDiscussion->defaultJson(Auth::user()); } else { return error_popup(trans('beatmaps.discussion-votes.update.error')); } }
public function update() { $customizationParams = get_params(Request::all(), 'user_profile_customization', ['extras_order:string[]']); $userParams = get_params(Request::all(), 'user', ['user_from:string', 'user_interests:string', 'user_msnm:string', 'user_occ:string', 'user_twitter:string', 'user_website:string']); if (count($customizationParams) > 0) { Auth::user()->profileCustomization()->update($customizationParams); } if (count($userParams) > 0) { Auth::user()->update($userParams); } return Auth::user()->defaultJson(); }
<?php $show = get_params('shows', $attr); $list = $this->db->result("SELECT * FROM weblink WHERE published = 1 ORDER BY id DESC"); if ($show == 1) { ?> <select name="" style="width: 99%;"> <?php foreach ($list as $rs) { ?> <option onclick="window.open('<?php echo $rs->link; ?> ');"><?php echo $rs->name; ?> </option> <?php } ?> </select> <?php } else { ?> <?php foreach ($list as $rs) { ?> <div><a href="<?php echo $rs->link; ?> " target="_blank"><?php
* along with this program. If not, see <http://www.gnu.org/licenses/>. */ include 'config.php'; function handle_error($status = '404 Not Found', $header, $text) { global $config; header('HTTP/1.0 ' . $status); header('Status: ' . $status); do_header(); echo '<h3>' . $header . '</h3>'; echo '<p class="warning">Sorry :-(</p>'; echo '<p>' . $text . '</p>'; echo '<p class="leave"><a href="' . $config['base'] . '">Go to ' . $config['shortener'] . '</a></p>'; do_footer(); die; } $short = get_params($_SERVER['PATH_INFO']); $short_url = clean($short[0]); if (empty($short_url)) { go_to('/'); } $query = mysql_query("SELECT long_url, status FROM urls WHERE short_url = CONVERT('{$short_url}' USING binary) LIMIT 1"); $result = mysql_fetch_row($query, MYSQL_ASSOC); if (empty($result)) { handle_error('404 Not Found', 'Not Found', 'We couldn\'t find that URL.'); } if ($result['status'] == 'suspended') { handle_error('403 Forbidden', 'Suspended URL', 'This URL has been suspended.'); } $long_url = $result['long_url']; go_to($long_url);
} // apply defaults for missing parameters if ($defaults) { foreach ($defaults as $k => $v) { if (!isset($ret[$k])) { $ret[$k] = $v; } } } if ($overwrite) { $_REQUEST = $ret; } return $ret; } // Example: page.php?style=modern $argv = get_params(array('id' => 42, 'style' => 'medieval')); // $argv['id'] = 42 // $argv['style'] = 'modern' // url maker function, remove duplicated vars // exemple // makeUrl('index.php', $_SERVER['QUERY_STRING'], 'name=value&name2=value2'); function makeUrl($path, $qs = false, $qsAdd = false) { $var_array = array(); $varAdd_array = array(); $url = $path; if ($qsAdd) { $varAdd = explode('&', $qsAdd); foreach ($varAdd as $varOne) { $name_value = explode('=', $varOne); $varAdd_array[$name_value[0]] = $name_value[1];
private function postParams($isNew = true) { $params = get_params(Request::all(), 'beatmap_discussion_post', ['message']); $params['last_editor_id'] = Auth::user()->user_id; if ($isNew) { $params['user_id'] = Auth::user()->user_id; } return $params; }
<br><br> <a href="index.php?setlang=de"><img src="images/flags/de.png" border=0></a> <a href="index.php?setlang=en"><img src="images/flags/gb.png" border=0></a> <a href="index.php?setlang=ru"><img src="images/flags/ru.png" border=0></a> <br><br> <input type="submit" value=" <?php echo __('Войти'); ?> "/> </form> </div> </center> <?php } else { define("user_id", $iUsrId); if (get_params($sModule, 'show_to_user')) { if (!($sPath = get_module($sModule))) { echo '<br><br><br><br><center>' . __('Ошибка: модуль не подключен') . '</center><br><br><br><br>'; } else { include $sPath; } } else { echo '<br><br><br><br><center>' . __('Ошибка: недостаточно прав') . '</center><br><br><br><br>'; } } ?> </div> </article> <footer> <div class="foot_logo">
<?php require_once '../data/qcew_data.php'; $parms = get_params(array('stfips' => '41', 'areatype' => '01', 'area' => '000000', 'periodyear' => '1999', 'periodtype' => '02', 'period' => '01', 'servicetype' => 'data')); $qcewdao = new IndustryDAO(); echo json_encode($qcewdao->getQCEWQuarter($parms['stfips'], $parms['areatype'], $parms['area'], $parms['periodyear'], $parms['periodtype'], $parms['period']));
if ($pages < $page) { $page = 1; } $cdr_query = "SELECT channel, calldate, userfield, src, dst, duration, billsec, lastapp, lastdata, uniqueid, randdata, disposition, dstchannel, dcontext, status FROM " . $conf_cdr_db . ".cdr WHERE" . $cdr_restr . $usr_restr . " ORDER BY " . $sort . " LIMIT " . ($page - 1) * $perpage . ", " . $perpage; $result_set = values($cdr_query); //echo $conf_cdr_db; if ($cal_num > 0) { $pstring = ''; for ($i = 0; $i < $pages; $i++) { if ($i + 1 == $page) { $pstring .= '<b>[' . ($i + 1) . ']</b> '; } else { $pstring .= '<a href="' . change_link_param($aLinkParams, 'page', $i + 1) . '">' . ($i + 1) . '</a> '; } } if (get_params('statistic', "show_name_in_stat")) { $show_name = 1; } else { $show_name = 0; } ?> <center><br> <?php echo __('Найдено записей'); ?> : <?php echo $cal_num; ?> ; <?php echo __('Общая продолжительность звонков'); ?>
/** run tests on a function. the code is passed in $txt */ function check_function($name, $txt, $offset) { global $API_params; $regex = '/ (?: zend_parse_parameters(?:_throw)? \\s*\\([^,]+ | zend_parse_(?:parameters_ex|method_parameters) \\s*\\([^,]+,[^,]+ | zend_parse_method_parameters_ex \\s*\\([^,]+,[^,]+,[^,+] ) ,\\s*"([^"]*)"\\s* ,\\s*([^{;]*) /Sx'; if (preg_match_all($regex, $txt, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { $GLOBALS['current_function'] = $name; foreach ($matches as $m) { $GLOBALS['error_few_vars_given'] = false; update_lineno($offset + $m[2][1]); $vars = get_vars(substr($txt, 0, $m[0][1])); // limit var search to current location $params = get_params($vars, $m[2][0]); $optional = $varargs = false; $last_char = ''; $j = -1; $spec = $m[1][0]; $len = strlen($spec); for ($i = 0; $i < $len; ++$i) { $char = $spec[$i]; switch ($char = $spec[$i]) { // separator for optional parameters case '|': if ($optional) { error("more than one optional separator at char #{$i}"); } else { $optional = true; if ($i == $len - 1) { error("unnecessary optional separator"); } } break; // separate_zval_if_not_ref // separate_zval_if_not_ref case '/': if (in_array($last_char, array('l', 'L', 'd', 'b'))) { error("the '/' specifier should not be applied to '{$last_char}'"); } break; // nullable arguments // nullable arguments case '!': if (in_array($last_char, array('l', 'L', 'd', 'b'))) { check_param($params, ++$j, 'zend_bool*', $optional); } break; // variadic arguments // variadic arguments case '+': case '*': if ($varargs) { error("A varargs specifier can only be used once. repeated char at column {$i}"); } else { check_param($params, ++$j, 'zval**', $optional); check_param($params, ++$j, 'int*', $optional); $varargs = true; } break; case 's': case 'p': check_param($params, ++$j, 'char**', $optional, $allow_uninit = true); check_param($params, ++$j, 'size_t*', $optional, $allow_uninit = true); if ($optional && !$params[$j - 1][2] && !$params[$j][2] && $params[$j - 1][0] !== '**dummy**' && $params[$j][0] !== '**dummy**') { error("one of optional vars {$params[$j - 1][0]} or {$params[$j][0]} must be initialized", 1); } break; case 'C': // C must always be initialized, independently of whether it's optional check_param($params, ++$j, 'zend_class_entry**', false); break; default: if (!isset($API_params[$char])) { error("unknown char ('{$char}') at column {$i}"); } // If an is_null flag is in use, only that flag is required to be // initialized $allow_uninit = $i + 1 < $len && $spec[$i + 1] === '!' && in_array($char, array('l', 'L', 'd', 'b')); foreach ($API_params[$char] as $exp) { check_param($params, ++$j, $exp, $optional, $allow_uninit); } } $last_char = $char; } } } }
<?php $otp = get_params('otp', $attr); $imgh = get_params('img_h', $attr); $uri = $this->uri->segment(1); if ($otp == 0 && $uri == '') { $sql = "SELECT * FROM slider ORDER BY ordering ASC"; $listimg = $this->db->result($sql); ?> <script type="text/javascript" src="<?php echo base_url(); ?> site/mod/mod_slideshow/esset/jquery.nivo.slider.js"></script> <link rel="stylesheet" href="<?php echo base_url(); ?> site/mod/mod_slideshow/esset/nivo-slider.css" type="text/css" media="screen" /> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> <div id="home_slideshow"> <div class="theme-default"> <div class="ribbon"></div> <div id="slider" class="nivoSlider"> <?php foreach ($listimg as $val) { ?> <a href="<?php
<?php require_once '../data/employer_data.php'; // Create parameterized query for empdb table $parms = get_params(array('stfips' => '41', 'areatype' => '04', 'area' => '000000', 'zipcode' => '', 'naicscode' => '000000', 'sizeclass' => '9', 'annsalrng' => 'X', 'search' => '', 'page' => '1', 'rows' => '25', 'sord' => 'asc', 'sidx' => 'name')); $empdao = new EmployerDAO(); header('Content-type: text/xml'); echo $empdao->getEmployerData($parms['stfips'], $parms['areatype'], $parms['area'], $parms['zipcode'], $parms['naicscode'], $parms['sizeclass'], $parms['annsalrng'], $parms['search'], $parms['page'], $parms['rows'], $parms['sord'], $parms['sidx']);
<?php require_once '../data/income.php'; $parms = get_params(array('stfips' => '41', 'areatype' => '01', 'area' => '000000', 'incsource' => 'incsource', 'inctype' => 'incstype')); $incdao = new IncomeDAO(); echo json_encode($incdao->getList($parms['stfips'], $parms['areatype'], $parms['area'], '3', $parms['inctype']));
$output .= "<td colspan=2 style='padding-top:2px; padding-bottom:3px'>"; $output .= "\n\t\t<table class='rubriki' border=0>\n\t\t<tr>\n\t\t\t<td class='pic' valign='top'>\n\t\t\t\t<img src='shortimage.php?x=70&y=70&path=attachments/" . $products[$i][id] . "/big.jpg' border='0'>\n\t\t\t</td>\n\t\t\t<td valign='top'>\n\t\t\t\t<table class='podrubriki' border=0>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='left'>\n\t\t\t\t\t\t<a class='title3' href='" . get_url("/catalog.php?id=" . $products[$i][id]) . "'>" . $products[$i][name] . "</a>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t" . get_params($products[$i][id]) . "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t"; $output .= "</td class='center1'>"; $output .= "</tr>"; } if (count($products) % 2 != 0) { $output .= "<td class='center1'></td></tr>"; } } if ($show == "table") { for ($i = 0; $i < count($products); $i++) { if ($i % 2 == 0) { $output .= "<tr>"; } $output .= "<td class='center1'>"; $output .= "\n\t\t<table class='rubriki' border=0>\n\t\t<tr>\n\t\t\t<td class='pic' valign='top'>\n\t\t\t\t<img src='images/pic.jpg' height='35' width='35' border='0'>\n\t\t\t</td>\n\t\t\t<td valign='top'>\n\t\t\t\t<table class='podrubriki' border=0>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='left'>\n\t\t\t\t\t\t<a class='title3' href='" . get_url("/catalog.php?id=" . $products[$i][id]) . "'>" . $products[$i][name] . "</a>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td>\n\t\t\t\t\t\t" . get_params($products[$i][id]) . "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t"; $output .= "</td class='center1'>"; if ($i % 2 != 0) { $output .= "</tr>"; } } if (count($products) % 2 != 0) { $output .= "<td class='center1'></td></tr>"; } } if ($show == "compare") { if ($_POST[compare]) { $output = "\n\t\t<tr>\n\t\t\t<td colspan=2>\n\t\t\t\t<table border=0 width=100%>\n\t\t"; $product_id = array(); $product_id = $_POST[product_id]; $where = "";
<?php require_once '../data/employer_data.php'; $parms = get_params(array('stfips' => '41', 'areatype' => '01', 'area' => '000000', 'naicsect' => '00', 'search' => '')); $glist = new EmployerDAO(); echo $glist->getEmployerIndustries($parms['stfips'], $parms['areatype'], $parms['area'], $parms['naicsect'], $parms['search']);
/** * Crea un objeto stdClass apartir de parametros con nombre * @return object **/ function object_from_params($s = '') { $params = is_array($s) ? $s : get_params(func_get_args()); $obj = (object) $params; return $obj; }
<li><a href="index.php?item=007">Income</a></li> <li><a href="index.php?item=006">Employers</a></li> </ul> </div> </td> <!-- end: left block --> <!-- start: content--> <td valign="top" class="content"> <div id="mainbody"> <?php require_once 'data/wfutils.php'; $parms = get_params(array('itemid' => '000', 'printme' => 'n')); if ($parms['item'] == '001') { require_once 'occinfo_home.php'; } else { if ($parms['item'] == '002') { require_once 'indinfo_home.php'; } else { if ($parms['item'] == '003') { require_once 'unemp_home.php'; } else { if ($parms['item'] == '004') { require_once 'cenlabor_home.php'; } else { if ($parms['item'] == '005') { require_once 'population_home.php'; } else {
<?php require_once '../data/population.php'; $parms = get_params(array('stfips' => '41', 'areatype' => '01', 'area' => '000000', 'popsource' => 'popsource')); $popdao = new PopulationDAO(); echo json_encode($popdao->getList($parms['stfips'], $parms['areatype'], $parms['area'], $parms['popsource']));
<?php require_once '../data/employer_data.php'; // Create parameterized query for empdb table $parms = get_params(array('latitude' => '41', 'longitude' => '04', 'miles' => '5', 'naicscode' => '000000', 'sizeclass' => '9', 'annsalrng' => 'X', 'search' => '', 'page' => '1', 'rows' => '25', 'sord' => 'asc', 'sidx' => 'name')); $empdao = new EmployerDAO(); header('Content-type: text/xml'); echo $empdao->getEmployerNearestData($parms['latitude'], $parms['longitude'], $parms['miles'], $parms['naicscode'], $parms['sizeclass'], $parms['annsalrng'], $parms['search'], $parms['page'], $parms['rows'], $parms['sord'], $parms['sidx']);
function url_query_string_merge_with_get($params = array()) { return url_query_string(array_merge(get_params(), $params)); }
public function vote($topicId) { $topic = Topic::findOrFail($topicId); priv_check('ForumTopicVote', $topic)->ensureCan(); $params = get_params(Request::input(), 'forum_topic_vote', ['option_ids:int[]']); $params['user_id'] = Auth::user()->user_id; $params['ip'] = Request::ip(); if ($topic->vote()->fill($params)->save()) { return ujs_redirect(route('forum.topics.show', $topic->topic_id)); } else { return error_popup(implode(' ', $topic->vote()->validationErrors()->allMessages())); } }
/** run tests on a function. the code is passed in $txt */ function check_function($name, $txt, $offset) { global $API_params; if (preg_match_all('/zend_parse_parameters(?:_ex\\s*\\([^,]+,[^,]+|\\s*\\([^,]+),\\s*"([^"]*)"\\s*,\\s*([^{;]*)/S', $txt, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) { $GLOBALS['current_function'] = $name; foreach ($matches as $m) { $GLOBALS['error_few_vars_given'] = false; update_lineno($offset + $m[2][1]); $vars = get_vars(substr($txt, 0, $m[0][1])); // limit var search to current location $params = get_params($vars, $m[2][0]); $optional = $varargs = false; $last_last_char = $last_char = ''; $j = -1; $len = strlen($m[1][0]); for ($i = 0; $i < $len; ++$i) { switch ($char = $m[1][0][$i]) { // separator for optional parameters case '|': if ($optional) { error("more than one optional separator at char #{$i}"); } else { $optional = true; if ($i == $len - 1) { error("unnecessary optional separator"); } } break; // separate_zval_if_not_ref // separate_zval_if_not_ref case '/': if (!in_array($last_char, array('r', 'z'))) { error("the '/' specifier cannot be applied to '{$last_char}'"); } break; // nullable arguments // nullable arguments case '!': if (!in_array($last_char, array('a', 'C', 'f', 'h', 'o', 'O', 'r', 's', 't', 'z', 'Z'))) { error("the '!' specifier cannot be applied to '{$last_char}'"); } break; case '&': if (version_compare(VERSION, '6', 'ge')) { if ($last_char == 's' || $last_last_char == 's' && $last_char == '!') { check_param($params, ++$j, 'UConverter*', $optional); } else { error("the '&' specifier cannot be applied to '{$last_char}'"); } } else { error("unknown char ('&') at column {$i}"); } break; case '+': case '*': if (version_compare(VERSION, '6', 'ge')) { if ($varargs) { error("A varargs specifier can only be used once. repeated char at column {$i}"); } else { check_param($params, ++$j, 'zval****', $optional); check_param($params, ++$j, 'int*', $optional); $varargs = true; } } else { error("unknown char ('{$char}') at column {$i}"); } break; default: if (isset($API_params[$char])) { foreach ($API_params[$char] as $exp) { check_param($params, ++$j, $exp, $optional); } } else { error("unknown char ('{$char}') at column {$i}"); } } $last_last_char = $last_char; $last_char = $char; } } } }
/** * Returns parameters values from the example, or posted or the default values * * @param string $algorithm * @param string $source_code * @param array $posted_params * @param array $examples * @param string $filename * @return array */ function get_param_values($algorithm, $source_code, $posted_params, $examples, $filename) { $params = get_params($algorithm, $source_code); if (empty($params)) { $values = array(); } else { if (isset($posted_params['example']) and isset($examples[$posted_params['example']])) { $values = combine_params_and_values($params, $examples[$posted_params['example']]['values']); } else { if (!($values = filter_params($params, $posted_params))) { $values = get_defaults($params, $filename); } } } return fill_missing_params($params, $values); }
"> </td> </tr> </table> </div> </div> <div class="panel"> <?php $show_intro = get_params('show_intro', $rs->attr); $show_author = get_params('show_author', $rs->attr); $show_date = get_params('show_date', $rs->attr); $show_editdate = get_params('show_editdate', $rs->attr); $show_print = get_params('show_print', $rs->attr); $show_email = get_params('show_email', $rs->attr); $show_comment = get_params('show_comment', $rs->attr); $show_other = get_params('show_other', $rs->attr); ?> <h3 id="info" class="title vpanel_arrow"><span>Các thông số - bài viết</span></h3> <div class="panel_content" id="info_content"> <table style="width: 100%;"> <tr> <td class="_key">Phần mở đầu</td> <td class="_value"> <select name="attr[show_intro]"> <option value="2" <?php echo $show_intro == 2 ? 'selected="selected"' : ''; ?> >Mặc định</option> <option value="1" <?php echo $show_intro == 1 ? 'selected="selected"' : '';
<?php function get_params() { $accepted_params = array('k', 'target_url', 'action', 'rt', 'trk', 'grp'); $param_str = ''; foreach ($_GET as $k => $v) { if (in_array($k, $accepted_params)) { $param_str .= "&{$k}={$v}"; } } return $param_str; } header("location: /index.php?action=prli_bookmarklet" . get_params());
<?php require_once '../data/geog_data.php'; $parms = get_params(array('stfips' => '41', 'areatype' => '04')); $glist = new GeogDAO(); echo $glist->getAreaList($parms['stfips'], $parms['areatype']);
public function _getPath() { $path = join('/', get_params()); return str_replace('..', '', $path); }
/** * @inheritdoc */ public function run() { $this->registerClientScript(); if ($this->render) { if ($this->hasModel()) { switch ($this->editorType) { case 'uploadButton': return Html::activeInput('text', $this->model, $this->attribute, $this->options) . '<input type="button" id="uploadButton" value="Upload" />'; break; case 'colorPicker': return Html::activeInput('text', $this->model, $this->attribute, $this->options) . '<input type="button" id="colorpicker" value="打开取色器" />'; break; case 'fileManager': return Html::activeInput('text', $this->model, $this->attribute, $this->options) . '<input type="button" id="filemanager" value="浏览服务器" />'; break; case 'imageDialog': $value = $this->model->isNewRecord ? $this->defaultImg : Html::getAttributeValue($this->model, $this->attribute); return "<img id='thumb-img-{$this->id}' type='img' src='{$value}' style='max-height:100px;' />\n <input type='hidden' id='thumb-{$this->id}' name='{$this->name}' value='{$value}' class='input-medium' data-rule-url='true' />\n <a id='img-{$this->id}' class='btn insertimage'>选择图片</a>"; break; case 'fileDialog': return Html::activeInput('text', $this->model, $this->attribute, $this->options) . '<input type="button" id="insertfile" value="选择文件" />'; break; default: return Html::activeTextarea($this->model, $this->attribute, $this->options); break; } } else { switch ($this->editorType) { case 'uploadButton': return Html::input('text', $this->id, $this->value, $this->options) . '<input type="button" id="uploadButton" value="Upload" />'; break; case 'colorPicker': return Html::input('text', $this->id, $this->value, $this->options) . '<input type="button" id="colorpicker" value="打开取色器" />'; break; case 'fileManager': return Html::input('text', $this->id, $this->value, $this->options) . '<input type="button" id="filemanager" value="浏览服务器" />'; break; case 'imageDialog': $value = $this->model->isNewRecord ? get_params('UPLOAD_DEFAULT_IMG') : Html::getAttributeValue($this->model, $this->attribute); return "<img id='thumb_img_{$this->id}' type='img' src='{$value}' style='max-height:100px;' />\n <input type='hidden' id='thumb-{$this->id}' name='{$this->name}' value='' class='input-medium' data-rule-url='true' />\n <a id='img-{$this->id}' class='btn insertimage'>选择图片</a>"; break; case 'fileDialog': return Html::input('text', $this->id, $this->value, $this->options) . '<input type="button" id="insertfile" value="选择文件" />'; break; default: return Html::textarea($this->id, $this->value, $this->options); break; } } } }