public static radio ( $name, $value = null, $checked = false, $attributes = [] ) |
function yesno($name, $value = '') { // 1||0//Y||N//y||n//YES||NO - autodetect $html = ""; switch ($value) { case '0': case '1': $values = array(1, 0); break; case 'Y': case 'N': $values = array('Y', 'N'); case 'y': case 'n': $values = array('y', 'n'); case 'YES': case 'NO': $values = array('YES', 'NO'); default: $values = array('YES', 'NO'); } $html .= form::radio($name, $values[0], Lang::item('common.yes'), $value); $html .= form::radio($name, $values[1], Lang::item('common.no'), $value); return $html; }
private function buildForm() { $options = array('method' => "POST", 'enctype' => "multipart/form-data", 'action' => '/blog/formular/add', 'width' => '400px'); $form = new \form('testing', $options); $form->label('checkbox'); $form->checkbox('checkbox test', 'testcheckbox', 'check', ''); $form->checkbox('checkbox test2', 'testcheckbox', 'check2', true); $form->label('radio'); $form->radio('radio test', 'testradio', 'radio', ''); $form->radio('radio test 2', 'testradio', 'radio2', true); $form->label('textarea'); $form->text('textarea', ' ', ['error' => $this->error['textarea']]); $form->select('autos', ['a' => 'audi', 'b' => 'vw', 'c' => 'toyota'], 'b', ['label' => 'auto select']); $form->text('username', '', ['placeholder' => 'username', 'label' => 'Username', 'error' => $this->error['username']]); $form->password('password', '', ['label' => 'Password', 'error' => $this->error['password']]); $form->button('senden', ['type' => 'submit']); return $form; }
/** * Test radio column */ public function testRadioColumn() { $SUT = new Grid_Column_Radio(); $SUT->name('someOption'); $data = array('id' => 42); $cell = $SUT->render($data); $radio = form::radio('someOption', 42); $this->assertEquals($radio, $cell); }
function meta_custom() { $form = new form('details', null); $form->text('name', array('label' => 'Text Field')); $form->image('image', array('label' => 'Image Field', 'button' => 'Add Your Image')); $form->file('file', array('label' => 'File Field', 'button' => 'Select a File')); $form->textarea('address', array('label' => 'Textarea', 'validate' => 'html')); $form->select('rooms', array('one', 'two', 'three'), array('label' => 'Select List')); $form->radio('baths', array('blue', 'green', 'red'), array('label' => 'Radio Buttons')); $form->editor('baths', 'WYSIWYG Editor'); }
public static function RadioGroup($name, $checks, $check_checked = null, $styles = null) { $ret = null; foreach ($checks as $value => $label) { $checkradio = FALSE; if (isset($check_checked[$value])) { $checkradio = TRUE; } $ret .= "<p>" . form::radio("{$name}", $value, $checkradio) . "{$label}</p>"; } return $ret; }
protected function _create_rating($attributes = array()) { $result = array(); if ($this->scale == 0) { throw new Kohana_Exception('Morf::_create_rating() scale of zero is not allowed', $this->scale); } $i = $this->range[0]; $limit = $this->range[1]; for ($i; $i < $limit + $this->scale; $i += $this->scale) { $result[(string) $i] = form::radio($attributes, $i, $this->value == $i ? TRUE : FALSE); } return $result; }
public function render(&$render_variables, $errors = array()) { $result = parent::render($render_variables, $errors); // Clean attributes $id = $this->_clean_attributes($result['attributes'], 'id'); $buffer = array(); foreach ($this->options as $value => $title) { if ($this->value == $value) { $buffer[inflector::underscore($title)] = form::radio($result['attributes'], $value, TRUE); } else { $buffer[inflector::underscore($title)] = form::radio($result['attributes'], $value); } } $result['template']->element = $buffer; return (string) $result['template']->render(); }
public function getHtmlField($aPostedData) { $return = ''; switch ($this->type) { # Champ texte default: case 1: $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<label for="' . $this->html_id . '"' . ($this->status == 2 ? ' class="required" title="' . __('c_c_required_field') . '"' : '') . '>' . html::escapeHTML($this->title) . '</label>' . form::text($this->html_id, 60, 255, $aPostedData[$this->id]) . '</p>'; break; # Zone de texte # Zone de texte case 2: $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<label for="' . $this->html_id . '"' . ($this->status == 2 ? ' class="required" title="' . __('c_c_required_field') . '"' : '') . '>' . html::escapeHTML($this->title) . '</label>' . form::textarea($this->html_id, 58, 10, $aPostedData[$this->id]) . '</p>'; break; # Menu déroulant # Menu déroulant case 3: $values = array_filter((array) unserialize($this->value)); $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<label for="' . $this->html_id . '"' . ($this->status == 2 ? ' class="required" title="' . __('c_c_required_field') . '"' : '') . '>' . html::escapeHTML($this->title) . '</label>' . form::select($this->html_id, array_flip($values), $aPostedData[$this->id]) . '</p>'; break; # Boutons radio # Boutons radio case 4: $values = array_filter((array) unserialize($this->value)); $str = ''; foreach ($values as $k => $v) { $str .= '<li><label>' . form::radio(array($this->html_id, $this->html_id . '_' . $k), $k, $k == $aPostedData[$this->id]) . html::escapeHTML($v) . '</label></li>'; } $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<span class="fake-label">' . html::escapeHTML($this->title) . '</span></p>' . '<ul class="checklist">' . $str . '</ul>'; break; # Cases à cocher # Cases à cocher case 5: $values = array_filter((array) unserialize($this->value)); $str = ''; foreach ($values as $k => $v) { $str .= '<li><label>' . form::checkbox(array($this->html_id . '[' . $k . ']', $this->html_id . '_' . $k), $k, in_array($k, $aPostedData[$this->id])) . html::escapeHTML($v) . '</label></li>'; } $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<span class="fake-label">' . html::escapeHTML($this->title) . '</span></p>' . '<ul class="checklist">' . $str . '</ul>'; break; } return $return; }
public function render(&$render_variables, $errors = array()) { // Load base template and attributes $result = parent::render($render_variables, $errors); // Discover the type switch ($this->type) { case 'input': $result['template']->element = form::input($result['attributes'], $this->value); break; case 'password': $result['template']->element = form::password($result['attributes'], $this->value); break; case 'submit': $result['template']->element = form::submit($result['attributes'], $this->value); $render_variables['submit'] = TRUE; break; case 'radio': $result['template']->element = form::radio($result['attributes'], $this->value); break; case 'checkbox': $result['attributes']['value'] = $this->value; if ($this->value = Input::instance()->post($this->name)) { $result['template']->element = form::checkbox($result['attributes'], $this->value, TRUE); } else { $result['template']->element = form::checkbox($result['attributes'], $this->value); } break; case 'hidden': $result['template']->element = form::hidden($this->name, $this->value); break; case 'file': $result['template']->element = form::upload($result['attributes'], $this->value); $render_variables['enctype'] = 'multipart/form-data'; break; } // Return the resulting output return (string) $result['template']->render(); }
</label> <?php echo form::text('add_title', 40, 255, html::escapeHTML($aAddLanguageData['title'])); ?> </p> <p id="add_active_container" class="col"> <?php echo form::radio(array('add_active', 'add_active_1'), 1, $aAddLanguageData['active'] == 1); ?> <label for="add_active_1"><?php _e('c_c_action_Enable'); ?> </label> <?php echo form::radio(array('add_active', 'add_active_0'), 0, $aAddLanguageData['active'] == 0); ?> <label for="add_active_0"><?php _e('c_c_action_Disable'); ?> </label> </p> </div> <div class="two-cols"> <p class="field col"><label for="add_code" title="<?php _e('c_c_required_field'); ?> " class="required"><?php _e('c_a_config_l10n_code'); ?>
<p><label for="db_prefix">Préfixe des tables:</label><br/> <?php echo form::field('db_prefix', 20, 20, $params['km_dbprefix']); ?> </p> </fieldset><br/> <fieldset> <legend>Graphiques</legend> <p>Les librairies graphiques à utiliser et leurs options.</p> <p><label for="graphic_lib">Librairie graphique:</label><br/> <?php echo form::radio('graphic_lib', 'gd', $use_gd); ?> GD <?php echo form::radio('graphic_lib', 'im', $use_im); ?> Imagemagick </p> <p><label for="graphic_lib">Taille des miniatures:</label><br/> <?php echo form::field('thumb_width', 3, 3, $params['km_thumbwidth']); ?> * <?php echo form::field('thumb_height', 3, 3, $params['km_thumbheight']); ?> pixels </p> <p><label for="graphic_thumbtype">Type de miniatures:</label><br/> <?php
/** * Generate TextArea Field Entry Form * @param int $form_id The id no. of the form * @param int $field_id The id no. of the field */ private function _get_selector_textarea($form_id = 0, $field_id = "") { if (is_numeric($field_id)) { $field = ORM::factory('form_field', $field_id); if ($field->loaded == true) { $field_name = $field->field_name; $field_default = $field->field_default; $field_required = $field->field_required; $field_width = $field->field_width; $field_height = $field->field_height; $field_maxlength = $field->field_maxlength; $field_isdate = $field->field_isdate; } } else { $field_id = ""; $field_name = ""; $field_default = ""; $field_required = "0"; $field_width = ""; $field_height = ""; $field_maxlength = ""; $field_isdate = "0"; } $html = ""; $html .= "<input type=\"hidden\" name=\"form_id\" id=\"form_id\" value=\"" . $form_id . "\">"; $html .= "<input type=\"hidden\" name=\"field_id\" id=\"field_id\" value=\"\">"; $html .= "<input type=\"hidden\" name=\"field_isdate\" id=\"field_id\" value=\"0\">"; $html .= "<div id=\"form_result_" . $form_id . "\" class=\"forms_fields_result\"></div>"; $html .= "<div class=\"forms_item\">"; $html .= "\t<strong>" . Kohana::lang('ui_admin.field_name') . ":</strong><br />"; $html .= form::input('field_name', $field_name, ' class="text"'); $html .= "</div>"; $html .= "<div class=\"forms_item\">"; $html .= "\t<strong>" . Kohana::lang('ui_admin.field_default') . "?:</strong><br />"; $html .= form::input('field_default', $field_default, ' class="text"'); $html .= "</div>"; $html .= "<div class=\"forms_item\">"; $html .= "\t<strong>" . Kohana::lang('ui_admin.required') . "?</strong><br />"; if ($field_required != 1) { $html .= Kohana::lang('ui_admin.yes') . " " . form::radio('field_required', '1', FALSE) . " "; $html .= Kohana::lang('ui_admin.no') . " " . form::radio('field_required', '0', TRUE); } else { $html .= Kohana::lang('ui_admin.yes') . " " . form::radio('field_required', '1', TRUE) . " "; $html .= Kohana::lang('ui_admin.no') . " " . form::radio('field_required', '0', FALSE); } $html .= "</div>"; //$html .="<div class=\"forms_item\">"; //$html .=" <strong>Width (Columns):</strong><br />"; //$html .= form::input('field_width', '', ' class="text short"'); //$html .="</div>"; $html .= "<div class=\"forms_item\">"; $html .= "\t<strong>" . Kohana::lang('ui_admin.field_height') . ":</strong><br />"; $html .= form::input('field_height', $field_height, ' class="text short"'); $html .= "</div>"; $html .= "<div style=\"clear:both;\"></div>"; $html .= "<div class=\"forms_item\">"; $html .= "\t<div id=\"form_loading_" . $form_id . "\" class=\"forms_fields_loading\"></div>"; $html .= "\t<input type=\"image\" src=\"" . url::base() . "media/img/admin/btn-save.gif\" />"; $html .= "</div>"; $html .= "<div style=\"clear:both;\"></div>"; $html .= $this->_get_selector_js($form_id); return $html; }
<th align="right" valign="top"><?php echo L('index_page'); ?> :</th> <td valign="top"><?php echo form::radio(array('0' => L('no'), '1' => L('yes')), '0', 'name="special[ispage]"'); ?> </td> </tr> <tr> <th align="right" valign="top"><?php echo L('special_status'); ?> :</th> <td valign="top"><?php echo form::radio(array('0' => L('open'), '1' => L('pause')), '0', 'name="special[disabled]"'); ?> </td> </tr> <tr> <th align="right" valign="top"><?php echo L('template_style'); ?> :</th> <td valign="top"><?php echo form::select($template_list, $info['default_style'], 'name="special[style]" id="style" onchange="load_file_list(this.value)"', L('please_select')); ?> <script type="text/javascript">$.getJSON('?m=admin&c=category&a=public_tpl_file_list&style=<?php echo $info['default_style']; ?> &module=special&templates=index|list|show&name=special', function(data){$('#index_template').html(data.index_template);$('#list_template').html(data.list_template);$('#show_template').html(data.show_template);});</script>
/** * 生成标签选项 * @param $id HTML ID号 * @param $data 生成条件 * @param $value 当前值 * @param $op 操作名 * @return html 返回HTML代码 */ function creat_form($id, $data, $value = '', $op = '') { pc_base::load_sys_class('form', '', 0); if (empty($value)) $value = $data['defaultvalue']; $str = $ajax = ''; if($data['ajax']['name']) { if($data['ajax']['m']) { $url = '$.get(\'?m=content&c=push&a=public_ajax_get\', {html: this.value, id:\''.$data['ajax']['id'].'\', action: \''.$data['ajax']['action'].'\', module: \''.$data['ajax']['m'].'\', pc_hash: \''.$_SESSION['pc_hash'].'\'}, function(data) {$(\'#'.$id.'_td\').html(data)});'; } else { $url = '$.get(\'?m=template&c=file&a=public_ajax_get\', { html: this.value, id:\''.$data['ajax']['id'].'\', action: \''.$data['ajax']['action'].'\', op: \''.$op.'\', style: \'default\', pc_hash: \''.$_SESSION['pc_hash'].'\'}, function(data) {$(\'#'.$id.'_td\').html(data)});'; } } switch ($data['htmltype']) { case 'input': if($data['ajax']['name']) { $ajax = 'onblur="'.$url.'"'; } $str .= '<input type="text" name="'.$id.'" id="'.$id.'" value="'.$value.'" size="30" />'; break; case 'select': if($data['ajax']['name']) { $ajax = 'onchange="'.$url.'"'; } $str .= form::select($data['data'], $value, "name='$id' id='$id' $ajax"); break; case 'checkbox': if($data['ajax']['name']) { $ajax = ' onclick="'.$url.'"'; } if (is_array($value)) implode(',', $value); $str .= form::checkbox($data['data'], $value, "name='".$id."[]'".$ajax, '', '120'); break; case 'radio': if($data['ajax']['name']) { $ajax = ' onclick="'.$url.'"'; } $str .= form::radio($data['data'], $value, "name='$id'$ajax", '', '120'); break; case 'input_select': if($data['ajax']['name']) { $ajax = ';'.$url; } $str .= '<input type="text" name="'.$id.'" id="'.$id.'" value="'.$value.'" size="30" />'.form::select($data['data'], $value, "name='select_$id' id='select_$id' onchange=\"$('#$id').val(this.value);$ajax\""); break; case 'input_select_category': if($data['ajax']['name']) { $ajax = ';'.$url; } $str .= '<input type="text" name="'.$id.'" id="'.$id.'" value="'.$value.'" size="30" />'.form::select_category('', $value, "name='select_$id' id='select_$id' onchange=\"$('#$id').val(this.value);$ajax\"", '', (isset($data['data']['modelid']) ? $data['data']['modelid'] : 0), (isset($data['data']['type']) ? $data['data']['type'] : -1), (isset($data['data']['onlysub']) ? $data['data']['onlysub'] : 0)); break; case 'select_yp_model': if($data['ajax']['name']) { $ajax = ';'.$url; } $yp_models = getcache('yp_model', 'commons'); $d = array(L('please_select')); if (is_array($yp_models) && !empty($yp_models)) { foreach ($yp_models as $k =>$v) { $d[$k] = $v['name']; } } $str .= '<input type="text" name="'.$id.'" id="'.$id.'" value="'.$value.'" size="30" />'.form::select($d, $value, "name='select_$id' id='select_$id' onchange=\"$('#$id').val(this.value);$ajax\""); break; } if (!empty($data['validator'])) { $str .= '<script type="text/javascript">$(function(){$("#'.$id.'").formValidator({onshow:"'.L('input').$data['name'].'。",onfocus:"'.L('input').$data['name'].'。"'.($data['empty'] ? ',empty:true' : '').'})'; if ($data['htmltype'] != 'select' && (isset($data['validator']['min']) || isset($data['validator']['max']))) { $str .= ".inputValidator({".(isset($data['validator']['min']) ? 'min:'.$data['validator']['min'].',' : '').(isset($data['validator']['max']) ? 'max:'.$data['validator']['max'].',' : '')." onerror:'".$data['name'].L('should', '', 'template').(isset($data['validator']['min']) ? ' '.L('is_greater_than', '', 'template').$data['validator']['min'].L('lambda', '', 'template') : '').(isset($data['validator']['max']) ? ' '.L('less_than', '', 'template').$data['validator']['max'].L('lambda', '', 'template') : '')."。'})"; } if ($data['htmltype'] != 'checkbox' && $data['htmltype'] != 'radio' && isset($data['validator']['reg'])) { $str .= '.regexValidator({regexp:"'.$data['validator']['reg'].'"'.(isset($data['validator']['reg_param']) ? ",param:'".$data['validator']['reg_param']."'" : '').(isset($data['validator']['reg_msg']) ? ',onerror:"'.$data['validator']['reg_msg'].'"' : '').'})'; } $str .=";});</script>"; } return $str; }
function box($field, $value, $fieldinfo) { $setting = string2array($fieldinfo['setting']); if ($value == '') { $value = $this->fields[$field]['defaultvalue']; } $options = explode("\n", $this->fields[$field]['options']); foreach ($options as $_k) { $v = explode("|", $_k); $k = trim($v[1]); $option[$k] = $v[0]; } $values = explode(',', $value); $value = array(); foreach ($values as $_k) { if ($_k != '') { $value[] = $_k; } } $value = implode(',', $value); switch ($this->fields[$field]['boxtype']) { case 'radio': $string = form::radio($option, $value, "name='info[{$field}]' {$fieldinfo['formattribute']}", $setting['width'], $field); break; case 'checkbox': $string = form::checkbox($option, $value, "name='info[{$field}][]' {$fieldinfo['formattribute']}", 1, $setting['width'], $field); break; case 'select': $string = form::select($option, $value, "name='info[{$field}]' id='{$field}' {$fieldinfo['formattribute']}"); break; case 'multiple': $string = form::select($option, $value, "name='info[{$field}][]' id='{$field} ' size=2 multiple='multiple' style='height:60px;' {$fieldinfo['formattribute']}"); break; } return $string; }
/** * 按照模型搜索 */ public function init() { $grouplist = getcache('grouplist', 'member'); $_groupid = param::get_cookie('_groupid'); if (!$_groupid) { $_groupid = 8; } if (!$grouplist[$_groupid]['allowsearch']) { if ($_groupid == 8) { showmessage(L('guest_not_allowsearch')); } else { showmessage(''); } } if (!isset($_GET['catid'])) { showmessage(L('missing_part_parameters')); } $catid = intval($_GET['catid']); $siteids = getcache('category_content', 'commons'); $siteid = $siteids[$catid]; $this->categorys = getcache('category_content_' . $siteid, 'commons'); if (!isset($this->categorys[$catid])) { showmessage(L('missing_part_parameters')); } if (isset($_GET['info']['catid']) && $_GET['info']['catid']) { $catid = intval($_GET['info']['catid']); } else { $_GET['info']['catid'] = 0; } $modelid = $this->categorys[$catid]['modelid']; $modelid = intval($modelid); if (!$modelid) { showmessage(L('illegal_parameters')); } //搜索间隔 $minrefreshtime = getcache('common', 'commons'); $minrefreshtime = intval($minrefreshtime['minrefreshtime']); $minrefreshtime = $minrefreshtime ? $minrefreshtime : 5; if (param::get_cookie('search_cookie') && param::get_cookie('search_cookie') > SYS_TIME - 2) { showmessage(L('search_minrefreshtime', array('min' => $minrefreshtime)), 'index.php?m=content&c=search&catid=' . $catid, $minrefreshtime * 1280); } else { param::set_cookie('search_cookie', SYS_TIME + 2); } //搜索间隔 $CATEGORYS = $this->categorys; //产生表单 pc_base::load_sys_class('form', '', 0); $fields = getcache('model_field_' . $modelid, 'model'); $forminfos = array(); foreach ($fields as $field => $r) { if ($r['issearch']) { if ($r['formtype'] == 'catid') { $r['form'] = form::select_category('', $_GET['info']['catid'], 'name="info[catid]"', L('please_select_category'), $modelid, 0, 1); } elseif ($r['formtype'] == 'number') { $r['form'] = "<input type='text' name='{$field}_start' id='{$field}_start' value='' size=5 class='input-text'/> - <input type='text' name='{$field}_end' id='{$field}_start' value='' size=5 class='input-text'/>"; } elseif ($r['formtype'] == 'datetime') { $r['form'] = form::date("info[{$field}]"); } elseif ($r['formtype'] == 'box') { $options = explode("\n", $r['options']); foreach ($options as $_k) { $v = explode("|", $_k); $option[$v[1]] = $v[0]; } switch ($r['boxtype']) { case 'radio': $string = form::radio($option, $value, "name='info[{$field}]' id='{$field}'"); break; case 'checkbox': $string = form::radio($option, $value, "name='info[{$field}]' id='{$field}'"); break; case 'select': $string = form::select($option, $value, "name='info[{$field}]' id='{$field}'"); break; case 'multiple': $string = form::select($option, $value, "name='info[{$field}]' id='{$field}'"); break; } $r['form'] = $string; } elseif ($r['formtype'] == 'typeid') { $types = getcache('type_content', 'commons'); $types_array = array(L('no_limit')); foreach ($types as $_k => $_v) { if ($modelid == $_v['modelid']) { $types_array[$_k] = $_v['name']; } } $r['form'] = form::select($types_array, 0, "name='info[{$field}]' id='{$field}'"); } elseif ($r['formtype'] == 'linkage') { $setting = string2array($r['setting']); $value = $_GET['info'][$field]; $r['form'] = menu_linkage($setting['linkageid'], $field, $value); } elseif (in_array($r['formtype'], array('text', 'keyword', 'textarea', 'editor', 'title', 'author', 'omnipotent'))) { $value = safe_replace($_GET['info'][$field]); $r['form'] = "<input type='text' name='info[{$field}]' id='{$field}' value='" . $value . "' class='input-text search-text'/>"; } else { continue; } $forminfos[$field] = $r; } } //----------- if (isset($_GET['dosubmit'])) { $siteid = $this->categorys[$catid]['siteid']; $siteurl = siteurl($siteid); $this->db->set_model($modelid); $tablename = $this->db->table_name; $page = max(intval($_GET['page']), 1); $sql = "SELECT * FROM `{$tablename}` a,`{$tablename}_data` b WHERE a.id=b.id AND a.status=99"; $sql_count = "SELECT COUNT(*) AS num FROM `{$tablename}` a,`{$tablename}_data` b WHERE a.id=b.id AND a.status=99"; //构造搜索SQL $where = ''; foreach ($fields as $field => $r) { if ($r['issearch']) { $table_nickname = $r['issystem'] ? 'a' : 'b'; if ($r['formtype'] == 'catid') { if ($_GET['info']['catid']) { $where .= " AND {$table_nickname}.catid='{$catid}'"; } } elseif ($r['formtype'] == 'number') { $start = "{$field}_start"; $end = "{$field}_end"; if ($_GET[$start]) { $start = intval($_GET[$start]); $where .= " AND {$table_nickname}.{$field}>'{$start}'"; } if ($_GET[$end]) { $end = intval($_GET[$end]); $where .= " AND {$table_nickname}.{$field}<'{$end}'"; } } elseif ($r['formtype'] == 'datetime') { if ($_GET['info'][$field]) { $start = strtotime($_GET['info'][$field]); if ($start) { $where .= " AND {$table_nickname}.{$field}>'{$start}'"; } } } elseif ($r['formtype'] == 'box') { if ($_GET['info'][$field]) { $field_value = safe_replace($_GET['info'][$field]); switch ($r['boxtype']) { case 'radio': $where .= " AND {$table_nickname}.`{$field}`='{$field_value}'"; break; case 'checkbox': $where .= " AND {$table_nickname}.`{$field}` LIKE '%,{$field_value},%'"; break; case 'select': $where .= " AND {$table_nickname}.`{$field}`='{$field_value}'"; break; case 'multiple': $where .= " AND {$table_nickname}.`{$field}` LIKE '%,{$field_value},%'"; break; } } } elseif ($r['formtype'] == 'typeid') { if ($_GET['info'][$field]) { $typeid = intval($_GET['info'][$field]); $where .= " AND {$table_nickname}.`{$field}`='{$typeid}'"; } } elseif ($r['formtype'] == 'linkage') { if ($_GET['info'][$field]) { $linkage = intval($_GET['info'][$field]); $where .= " AND {$table_nickname}.`{$field}`='{$linkage}'"; } } elseif (in_array($r['formtype'], array('text', 'keyword', 'textarea', 'editor', 'title', 'author', 'omnipotent'))) { if ($_GET['info'][$field]) { $keywords = safe_replace($_GET['info'][$field]); $where .= " AND {$table_nickname}.`{$field}` LIKE '%{$keywords}%'"; } } else { continue; } } } //----------- if ($where == '') { showmessage(L('please_enter_content_to_search')); } $pagesize = 20; $offset = intval($pagesize * ($page - 1)); $sql_count .= $where; $this->db->query($sql_count); $total = $this->db->fetch_array(); $total = $total[0]['num']; if ($total != 0) { $sql .= $where; $order = ''; $order = $_GET['orderby'] == 'a.id DESC' ? 'a.id DESC' : 'a.id ASC'; $sql .= ' ORDER BY ' . $order; $sql .= " LIMIT {$offset},{$pagesize}"; $this->db->query($sql); $datas = $this->db->fetch_array(); $pages = pages($total, $page, $pagesize); } else { $datas = array(); $pages = ''; } } $SEO = seo($siteid, $catid, $keywords); include template('content', 'search'); }
echo L('picture_a_caption_pictures'); ?> </td> </tr> <tr> <td width="120"><?php echo L('import_article_state'); ?> :</td> <td> <?php if (!empty($cat['setting']['workflowid'])) { echo form::radio(array('1' => L('pendingtrial'), '99' => L('fantaoboys')), '1', 'name="content_status"'); } else { echo form::radio(array('99' => L('fantaoboys')), '99', 'name="content_status"'); } ?> </td> </tr> </table> </fieldset> <div class="bk10"></div> <fieldset> <legend><?php echo L('corresponding_labels_and_a_database_ties'); ?> </legend> <div class="table-list"> <table width="100%" cellspacing="0"> <thead>
</div> <br> <div class="box"> <table> <tr> <td width="5"><?php print form::radio('formato', 0, 1); ?> </td><td width="50">CSV</td> <td width="5"><?php print form::radio('formato', 1, 0); ?> </td><td width="50">KML</td> <!-- JP: Added HTML option. --> <td width="5"><?php print form::radio('formato', 2, 0); ?> </td><td width="50">HTML</td> <td width="50"> <input id="save_only" type="image" src="<?php print url::file_loc('img'); ?> media/img/admin/btn-download.gif" class="save-rep-btn" /> </td> </tr> </table> </div> <div id="form_error"></div> <?php print form::close(); ?>
echo '<div id="media-insert">' . '<form id="media-insert-form" action="" method="get">'; if ($file->media_type == 'image') { $media_type = 'image'; $media_desc = dcGetImageTitle($file, 'Title ;; City ;; Country ;; Date(%b %Y) ;; separator(, )'); if ($media_desc == $file->basename) { $media_desc = ''; } echo '<h3>' . __('Image size:') . '</h3> '; $s_checked = false; echo '<p>'; foreach (array_reverse($file->media_thumb) as $s => $v) { $s_checked = $s == 'm'; echo '<label class="classic">' . form::radio(array('src'), html::escapeHTML($v), $s_checked) . ' ' . __($okt->media->thumb_sizes[$s][2]) . '</label><br /> '; } $s_checked = !isset($file->media_thumb['m']); echo '<label class="classic">' . form::radio(array('src'), $file->file_url, $s_checked) . ' ' . __('original') . '</label><br /> '; echo '</p>'; /* echo '<h3>'.__('Image alignment').'</h3>'; $i_align = array( 'none' => array(__('c_c_None'),1), 'left' => array(__('c_c_direction_Left'),0), 'right' => array(__('c_c_direction_Right'),0), 'center' => array(__('c_c_direction_Center'),0) ); echo '<p>'; foreach ($i_align as $k => $v) { echo '<label class="classic">'. form::radio(array('alignment'),$k,$v[1]).' '.$v[0].'</label><br /> '; }
/** * Function UPLOAD_VIDEO * 用户上传视频 */ public function upload_video() { $memberinfo = $this->memberinfo; $grouplist = getcache('grouplist'); //判断会员组是否允许投稿 if (!$grouplist[$memberinfo['groupid']]['allowpost']) { showmessage(L('member_group') . L('publish_deny'), HTTP_REFERER); } //判断每日投稿数 $this->content_check_db = pc_base::load_model('content_check_model'); $todaytime = strtotime(date('y-m-d', SYS_TIME)); $_username = $this->memberinfo['username']; $allowpostnum = $this->content_check_db->count("`inputtime` > {$todaytime} AND `username`='{$_username}'"); if ($grouplist[$memberinfo['groupid']]['allowpostnum'] > 0 && $allowpostnum >= $grouplist[$memberinfo['groupid']]['allowpostnum']) { showmessage(L('allowpostnum_deny') . $grouplist[$memberinfo['groupid']]['allowpostnum'], HTTP_REFERER); } //加载视频库配置信息 pc_base::load_app_class('ku6api', 'video', 0); $setting = getcache('video', 'video'); if (empty($setting)) { showmessage('上传功能还在开发中,请稍后重试!'); } $ku6api = new ku6api($setting['sn'], $setting['skey']); if (isset($_POST['dosubmit'])) { $_POST['info']['catid'] = isset($_POST['info']['catid']) ? intval($_POST['info']['catid']) : showmessage('请选择栏目!'); $_POST['info']['title'] = isset($_POST['info']['title']) ? safe_replace($_POST['info']['title']) : showmessage('标题不能为空!'); $_POST['info']['keywords'] = isset($_POST['info']['keywords']) ? safe_replace($_POST['info']['keywords']) : ''; $_POST['info']['description'] = isset($_POST['info']['description']) ? safe_replace($_POST['info']['description']) : ''; //查询此模型下的视频字段 $field = get_video_field($_POST['info']['catid']); if (!$field) { showmessage('上传功能还在开发中,请稍后重试!'); } $_POST['info'][$field] = 1; $_POST[$field . '_video'] = array(1 => array('title' => $_POST['info']['title'], 'vid' => $_POST['vid'], 'listorder' => 1)); unset($_POST['vid']); $this->publish(); } else { $categorys = video_categorys(); if (is_array($categorys) && !empty($categorys)) { $cat = array(); $priv_db = pc_base::load_model('category_priv_model'); //加载栏目权限表数据模型 foreach ($categorys as $cid => $c) { if ($c['child'] == 0 && $c['type'] == 0 && !$priv_db->get_one(array('catid' => $cid, 'roleid' => $memberinfo['groupid'], 'is_admin' => 0, 'action' => 'add'))) { unset($categorys[$cid]); } } if (empty($categorys)) { showmessage(L('category') . L('publish_deny'), APP_PATH . 'index.php?m=member'); } foreach ($categorys as $cid => $c) { if ($c['child']) { $ischild = 1; $categorys[$cid]['disabled'] = 'disabled'; } $cat[$cid] = $c['catname']; } if (!$ischild) { $cat_list = form::radio($cat, '', 'name="info[catid]"', '90'); } else { $tree = pc_base::load_sys_class('tree'); $str = "<option value='\$catid' \$selected \$disabled>\$spacer \$catname</option>"; $tree->init($categorys); $string = $tree->get_tree(0, $str); $cat_list = '<select name="info[catid]" id="catid"><option value="0">请选择栏目</option>' . $string . '</select>'; } } $flash_info = $ku6api->flashuploadparam(); //加载视频上传工具信息 include template('member', 'upload_video'); } }
<tr class="<?php echo isset($installed_locales[$code]) ? "g-installed" : ""; echo $default_locale == $code ? " g-default" : ""; ?> "> <td> <?php echo form::checkbox("installed_locales[]", $code, isset($installed_locales[$code])); ?> </td> <td> <?php echo $display_name; ?> </td> <td> <?php echo form::radio("default_locale", $code, $default_locale == $code, isset($installed_locales[$code]) ? '' : 'disabled="disabled"'); ?> </td> </tr> <?php $i++; ?> <?php } ?> </table> <input type="submit" value="<?php echo t("Update languages")->for_html_attr(); ?> " /> </form>
echo '<fieldset><legend>' . __('Blog details') . '</legend>' . $core->formNonce(); if ($core->auth->isSuperAdmin()) { echo '<p><label class="required" title="' . __('Required field') . '">' . __('Blog ID:') . form::field('blog_id', 30, 32, html::escapeHTML($blog_id)) . '</label></p>' . '<p class="form-note">' . __('At least 2 characters using letters, numbers or symbols.') . ' ' . __('Please note that changing your blog ID may require changes in your public index.php file.') . '</p>'; } echo '<p><label class="required" title="' . __('Required field') . '">' . __('Blog name:') . form::field('blog_name', 30, 255, html::escapeHTML($blog_name)) . '</label></p>'; if ($core->auth->isSuperAdmin()) { echo '<p><label class="required" title="' . __('Required field') . '">' . __('Blog URL:') . form::field('blog_url', 30, 255, html::escapeHTML($blog_url)) . '</label></p>' . '<p><label>' . __('URL scan method:') . form::combo('url_scan', $url_scan_combo, $blog_settings->url_scan) . '</label></p>' . '<p><label>' . __('Blog status:') . form::combo('blog_status', $status_combo, $blog_status) . '</label></p>'; } echo '<p class="area"><label for="blog_desc">' . __('Blog description:') . '</label>' . form::textarea('blog_desc', 60, 5, html::escapeHTML($blog_desc)) . '</p>' . '</fieldset>'; echo '<fieldset><legend>' . __('Blog configuration') . '</legend>' . '<div class="two-cols">' . '<div class="col">' . '<p><label>' . __('Blog editor name:') . form::field('editor', 30, 255, html::escapeHTML($blog_settings->editor)) . '</label></p>' . '<p><label>' . __('Default language:') . form::combo('lang', $lang_combo, $blog_settings->lang, 'l10n') . '</label></p>' . '<p><label>' . __('Blog timezone:') . form::combo('blog_timezone', dt::getZones(true, true), html::escapeHTML($blog_settings->blog_timezone)) . '</label></p>' . '</div>' . '<div class="col">' . '<p><label>' . __('Copyright notice:') . form::field('copyright_notice', 30, 255, html::escapeHTML($blog_settings->copyright_notice)) . '</label></p>' . '<p><label>' . __('New post URL format:') . form::combo('post_url_format', $post_url_combo, html::escapeHTML($blog_settings->post_url_format)) . '</label></p>' . '<p><label class="classic">' . form::checkbox('enable_xmlrpc', '1', $blog_settings->enable_xmlrpc) . __('Enable XML/RPC interface') . '</label>' . ' - <a href="#xmlrpc">' . __('more information') . '</a></p>' . '</div>' . '</div>' . '<br class="clear" />' . '</fieldset>'; echo '<fieldset><legend>' . __('Comments and trackbacks') . '</legend>' . '<div class="two-cols">' . '<div class="col">' . '<p><label class="classic">' . form::checkbox('allow_comments', '1', $blog_settings->allow_comments) . __('Accept comments') . '</label></p>' . '<p><label class="classic">' . form::checkbox('comments_pub', '1', !$blog_settings->comments_pub) . __('Moderate comments') . '</label></p>' . '<p><label class="classic">' . sprintf(__('Leave comments open for %s days'), form::field('comments_ttl', 2, 3, $blog_settings->comments_ttl)) . '</label></p>' . '<p class="form-note">' . __('Leave blank to disable this feature.') . '</p>' . '<p><label class="classic">' . form::checkbox('wiki_comments', '1', $blog_settings->wiki_comments) . __('Wiki syntax for comments') . '</label></p>' . '</div>' . '<div class="col">' . '<p><label class="classic">' . form::checkbox('allow_trackbacks', '1', $blog_settings->allow_trackbacks) . __('Accept trackbacks') . '</label></p>' . '<p><label class="classic">' . form::checkbox('trackbacks_pub', '1', !$blog_settings->trackbacks_pub) . __('Moderate trackbacks') . '</label></p>' . '<p><label class="classic">' . sprintf(__('Leave trackbacks open for %s days'), form::field('trackbacks_ttl', 2, 3, $blog_settings->trackbacks_ttl)) . '</label></p>' . '<p class="form-note">' . __('Leave blank to disable this feature.') . '</p>' . '<p><label class="classic">' . form::checkbox('comments_nofollow', '1', $blog_settings->comments_nofollow) . __('Add "nofollow" relation on comments and trackbacks links') . '</label></p>' . '</div>' . '</div>' . '<br class="clear" />' . '</fieldset>'; echo '<fieldset><legend>' . __('Blog presentation') . '</legend>' . '<div class="two-cols">' . '<div class="col">' . '<p><label>' . __('Date format:') . form::field('date_format', 30, 255, html::escapeHTML($blog_settings->date_format)) . '</label></p>' . '<p><label>' . __('Time format:') . form::field('time_format', 30, 255, html::escapeHTML($blog_settings->time_format)) . '</label></p>' . '<p><label class="classic">' . form::checkbox('use_smilies', '1', $blog_settings->use_smilies) . __('Display smilies on entries and comments') . '</label></p>' . '</div>' . '<div class="col">' . '<p><label class="classic">' . sprintf(__('Display %s entries per page'), form::field('nb_post_per_page', 2, 3, $blog_settings->nb_post_per_page)) . '</label></p>' . '<p><label class="classic">' . sprintf(__('Display %s entries per feed'), form::field('nb_post_per_feed', 2, 3, $blog_settings->nb_post_per_feed)) . '</label></p>' . '<p><label class="classic">' . sprintf(__('Display %s comments per feed'), form::field('nb_comment_per_feed', 2, 3, $blog_settings->nb_comment_per_feed)) . '</label></p>' . '<p><label class="classic">' . form::checkbox('short_feed_items', '1', $blog_settings->short_feed_items) . __('Truncate feeds') . '</label></p>' . '</div>' . '</div>' . '<br class="clear" />' . '</fieldset>'; echo '<fieldset><legend>' . __('Media and images') . '</legend>' . '<div class="two-cols">' . '<div class="col">' . '<h4>' . __('Generated image sizes (in pixels)') . '</h4>' . '<p class="field"><label>' . __('Thumbnails:') . ' ' . form::field('media_img_t_size', 3, 3, $blog_settings->media_img_t_size) . '</label></p>' . '<p class="field"><label>' . __('Small:') . ' ' . form::field('media_img_s_size', 3, 3, $blog_settings->media_img_s_size) . '</label></p>' . '<p class="field"><label>' . __('Medium:') . ' ' . form::field('media_img_m_size', 3, 3, $blog_settings->media_img_m_size) . '</label></p>' . '</div>' . '<div class="col">' . '<h4><label for="media_img_title_pattern">' . __('Inserted image title') . '</label></h4>' . '<p>' . __('This defines image tag title when you insert it in a post from the media manager. It is retrieved from the picture\'s metadata.') . '</p>' . '<p>' . form::combo('media_img_title_pattern', $img_title_combo, html::escapeHTML($blog_settings->media_img_title_pattern)) . '</p>' . '</div>' . '</div>' . '</fieldset>'; echo '<fieldset><legend>' . __('Search engines robots policy') . '</legend>'; foreach ($robots_policy_options as $k => $v) { echo '<p><label class="classic">' . form::radio(array('robots_policy'), $k, $blog_settings->robots_policy == $k) . ' ' . $v . '</label></p>'; } echo '</fieldset>'; # --BEHAVIOR-- adminBlogPreferencesForm $core->callBehavior('adminBlogPreferencesForm', $core, $blog_settings); echo '<p><input type="submit" accesskey="s" value="' . __('save') . '" />' . (!$standalone ? form::hidden('id', $blog_id) : '') . '</p>' . '</form>'; if ($core->auth->isSuperAdmin() && $blog_id != $core->blog->id) { echo '<form action="blog_del.php" method="post">' . '<p><input type="submit" value="' . __('Delete this blog') . '" />' . form::hidden(array('blog_id'), $blog_id) . $core->formNonce() . '</p>' . '</form>'; } # XML/RPC information echo '<h3 id="xmlrpc">' . __('XML/RPC interface') . '</h3>'; echo '<p>' . __('XML/RPC interface allows you to edit your blog with an external client.') . '</p>'; if (!$blog_settings->enable_xmlrpc) { echo '<p>' . __('XML/RPC interface is not active. Change settings to enable it.') . '</p>'; } else { echo '<p>' . __('XML/RPC interface is active. You should set the following parameters on your XML/RPC client:') . '</p>' . '<ul>' . '<li>' . __('Server URL:') . ' <strong>' . sprintf(DC_XMLRPC_URL, $core->blog->url, $core->blog->id) . '</strong></li>' . '<li>' . __('Blogging system:') . ' <strong>Movable Type</strong></li>' . '<li>' . __('User name:') . ' <strong>' . $core->auth->userID() . '</strong></li>' . '<li>' . __('Password:'******' <strong>' . __('your password') . '</strong></li>' . '<li>' . __('Blog ID:') . ' <strong>1</strong></li>' . '</ul>';
</div> <div class="tab_form_item" id="action_form_approve" style="margin-right:75px;"> <h4><a href="#" class="tooltip" title="<?php echo htmlspecialchars(Kohana::lang("tooltips.actions.approve")); ?> "><?php echo Kohana::lang('ui_admin.mark_as'); ?> :</a></h4> <?php echo form::radio('action_approve', '0', TRUE) . ' ' . Kohana::lang('ui_main.disapprove'); ?> <br/> <?php echo form::radio('action_approve', '1', FALSE) . ' ' . Kohana::lang('ui_main.approve'); ?> </div> <div class="tab_form_item" id="action_form_badge" style="margin-right:75px;"> <h4><a href="#" class="tooltip" title="<?php echo htmlspecialchars(Kohana::lang("tooltips.actions.assign_badge")); ?> "><?php echo Kohana::lang('ui_admin.assign_badge'); ?> :</a></h4> <?php echo form::dropdown('action_badge', $badges, 'standard'); ?> </div>
<tr> <td width="120"><?php echo L('watermark')?>:</td> <td> <?php echo form::radio(array('1'=>L('gfl_sdk'), '0'=>L('no_gfl_sdk')), (isset($data['watermark']) ? $data['watermark'] : '0'), 'name="data[watermark]"')?> </td> </tr> <tr> <td width="120"><?php echo L('content_page_models')?>:</td> <td> <?php echo form::radio(array('0'=>L('no_page'), '1'=>L('by_the_paging')), (isset($data['content_page']) ? $data['content_page'] : '1'), 'name="data[content_page]"')?> </td> </tr> <tr> <td width="120"><?php echo L('sort_order')?>:</td> <td> <?php echo form::radio(array('1'=>L('with_goals_from_the_same'), '2'=>L('and_objectives_of_the_standing_opposite')), (isset($data['coll_order']) ? $data['coll_order'] : '1'), 'name="data[coll_order]"')?> </td> </tr> </table> </div> </div> <div class="bk15"></div> <input name="dosubmit" type="submit" id="dosubmit" value="<?php echo L('submit')?>" class="button"> </div> </form> <script type="text/javascript"> <!-- function insertText(id, text)
$default = isset($defaults[1]) ? $defaults[1] : 0; if (isset($form['custom_field'][$field_id])) { if ($form['custom_field'][$field_id] != '') { $default = $form['custom_field'][$field_id]; } } $options = explode(',', $defaults[0]); $html = ''; switch ($field_property['field_type']) { case 5: foreach ($options as $option) { $option = trim($option); $set_default = $option == trim($default); $html .= "<span class=\"custom-field-option\">"; $html .= form::label('custom_field[' . $field_id . ']', " " . $option . " "); $html .= form::radio('custom_field[' . $field_id . ']', $option, $set_default, $id_name); $html .= "</span>"; $html .= form::hidden("custom_field[" . $field_id . "-BLANKHACK]", '', $id_name); } break; case 6: $multi_defaults = !empty($field_property['field_response']) ? explode(',', $field_property['field_response']) : NULL; $cnt = 0; $html .= "<table border=\"0\">"; foreach ($options as $option) { if ($cnt % 2 == 0) { $html .= "<tr>"; } $html .= "<td>"; $set_default = FALSE; if (!empty($multi_defaults)) {
<? endif ?> <? if(!empty($tag_installed)): ?> <li <? if (!empty($errors["tags"])): ?> class="gError"<? endif ?>> <fieldset> <?php echo form::label("gGenerateTags", t("Generate Tags")); ?> <?php echo form::checkbox(array("id" => "gGenerateTags", "name" => "generate_tags", "class" => "gGenerateCheckbox", "style" => "display:inline", "checked" => !empty($form["generate_tags"])), ".gRadioTag"); ?> <? foreach (array(1, 10, 50, 100, 500, 1000) as $number): ?> <span style="float:left;padding-right: .5em;"><?php echo form::label("tag_{$number}", "{$number}"); ?> <?php echo form::radio(array("id" => "tag_{$number}", "name" => "tags", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "gRadioTag"), $number); ?> </span> <? endforeach ?> </fieldset> <? if (!empty($errors["tags"]) && $errors["tags"] == "numeric"): ?> <p class="gError"><?php echo t("Number to create must be numeric"); ?> </p> <? endif ?> </li> <? endif ?> <li> <?php echo form::submit(array("id" => "gGenerateData", "name" => "generate", "class" => "submit", "style" => "clear:both!important"), t("Generate"));
if ($cval != '') { $cval = unserialize($cval); } $e = $o->existing; if ($e and $e != '') { $e = implode(',', array_keys(unserialize($e))); } ?> <div class="<?php echo $class; ?> "> <?php foreach ($select as $option) { ?> <?php echo form::radio(array('id' => $o->form->name . '-' . $o->form_name . '_' . $option->id, 'name' => $o->name . $o->group_id, 'checked' => isset($cval[(string) $option->id]), 'value' => $option->id)); ?> <label for="<?php echo $o->name . '_' . $option->id; ?> "><?php echo $option->title; ?> </label><br/> <?php } ?> </div> <?php }
echo Kohana::lang('endtime.applicable_description'); ?> </span></div> </h4> <!--<div style = "border: 1px solid black; margin-left:10px;">--> <div id="endtime_form" style="margin-left:30px; <?php echo $applicable == "1" ? "" : "display:none;"; ?> " > <?php print form::label('remain_on_map', Kohana::lang('decayimage.remain_on_map')); print form::radio('remain_on_map', 0, $remain_on_map == 0) . "<br />\n"; print form::label('remain_on_map', Kohana::lang('decayimage.decay_from_map')); print form::radio('remain_on_map', 2, $remain_on_map == 2) . "<br />\n"; print form::label('remain_on_map', Kohana::lang('decayimage.remove_from_map')); print form::radio('remain_on_map', 1, $remain_on_map == 1) . "<br />\n"; ?> <?php print form::input('end_incident_date', $form['end_incident_date'], ' class="text"'); ?> <?php print $date_picker_js; ?> <br/> <br/> <div class="time"> <?php print '<span class="sel-holder">' . form::dropdown('end_incident_hour', $hour_array, $form['end_incident_hour']) . '</span>';
<th width="80"><?php echo L('name'); ?> :</th> <td class="y-bg"><input type="text" class="input-text" name="name" id="name" size="30" value="<?php echo htmlspecialchars($edit_data['name']); ?> " /></td> </tr> <tr> <th><?php echo L('output_mode'); ?> :</th> <td class="y-bg"><?php echo form::radio(array('1' => 'json', '2' => 'xml', '3' => 'js'), $edit_data['dis_type'], 'name="dis_type" onclick="showcode(this.value)"'); ?> </td> </tr> <tbody id="template_code" <?php if ($edit_data['dis_type'] != 3) { echo 'style="display:none"'; } ?> > <tr> <th valign="top"><?php echo L('template'); ?> :</th> <td class="y-bg"><textarea name="template" id="template" style="width:386px;height:178px;"><?php
echo L('submit'); ?> "> </form> </fieldset> <div class="bk15"></div> <fieldset> <legend><?php echo L('publish_the_list'); ?> </legend> <form name="myform" action="?" method="get" > <div class="bk15"></div> <?php foreach ($program_list as $k => $v) { echo form::radio(array($v['id'] => $cat[$v['catid']]['catname']), '', 'name="programid"', 150); ?> <span style="margin-right:10px;"><a href="?m=collection&c=node&a=import_program_del&id=<?php echo $v['id']; ?> " style="color:#ccc"><?php echo L('delete'); ?> </a></span> <?php } ?> </fieldset> <input type="hidden" name="m" value="collection"> <input type="hidden" name="c" value="node"> <input type="hidden" name="a" value="import_content">