本文整理汇总了PHP中form_dropdown函数的典型用法代码示例。如果您正苦于以下问题:PHP form_dropdown函数的具体用法?PHP form_dropdown怎么用?PHP form_dropdown使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_dropdown函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: editar
public function editar($accion, $codigo = "")
{
$lista = new stdClass();
if ($accion == "e") {
$filter = new stdClass();
$filter->tipoestudiociclo = $codigo;
$tiposeestudiociclo = $this->tipoestudiociclo_model->obtener($filter);
$lista->codigo = $tiposeestudiociclo->TIPCICLOP_Codigo;
$lista->observacion = $tiposeestudiociclo->TIPCICLOC_Observacion;
$lista->ciclo = $tiposeestudiociclo->CICLOP_Codigo;
$lista->estado = $tiposeestudiociclo->TIPCICLOC_FlagEstado;
$lista->tipoestudio = $tiposeestudiociclo->TIPP_Codigo;
} elseif ($accion == "n") {
$lista->codigo = "";
$lista->observacion = "";
$lista->ciclo = "";
$lista->estado = 1;
$lista->tipoestudio = "";
}
$arrEstado = array("0" => "::Seleccione::", "1" => "ACTIVO", "2" => "INACTIVO");
$data['titulo'] = $accion == "e" ? "Editar Tipo de Estudio por ciclo" : "Crear Tipo de Estudio por ciclo";
$data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
$data['form_close'] = form_close();
$data['lista'] = $lista;
$data['selestado'] = form_dropdown('estado', $arrEstado, $lista->estado, "id='estado' class='comboMedio'");
$data['selciclo'] = form_dropdown('ciclo', $this->ciclo_model->seleccionar('0'), $lista->ciclo, "id='ciclo' class='comboMedio'");
$data['seltipoestudio'] = form_dropdown('tipoestudio', $this->tipoestudio_model->seleccionar('0'), $lista->tipoestudio, "id='tipoestudio' class='comboMedio'");
$data['oculto'] = form_hidden(array("accion" => $accion, "codigo_padre" => $codigo, "codigo" => $lista->codigo));
$this->load->view("maestros/tipoestudiociclo_nuevo", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:30,代码来源:tipoestudiociclo.php
示例2: test_form_dropdown
public function test_form_dropdown()
{
$expected = '<select name="shirts">
<option value="small">Small Shirt</option>
<option value="med">Medium Shirt</option>
<option value="large" selected="selected">Large Shirt</option>
<option value="xlarge">Extra Large Shirt</option>
</select>';
$options = array('small' => 'Small Shirt', 'med' => 'Medium Shirt', 'large' => 'Large Shirt', 'xlarge' => 'Extra Large Shirt');
$this->assertEquals($expected, form_dropdown('shirts', $options, 'large'));
$expected = '<select name="shirts" multiple="multiple">
<option value="small" selected="selected">Small Shirt</option>
<option value="med">Medium Shirt</option>
<option value="large" selected="selected">Large Shirt</option>
<option value="xlarge">Extra Large Shirt</option>
</select>';
$shirts_on_sale = array('small', 'large');
$this->assertEquals($expected, form_dropdown('shirts', $options, $shirts_on_sale));
$options = array('Swedish Cars' => array('volvo' => 'Volvo', 'saab' => 'Saab'), 'German Cars' => array('mercedes' => 'Mercedes', 'audi' => 'Audi'));
$expected = '<select name="cars" multiple="multiple">
<optgroup label="Swedish Cars">
<option value="volvo" selected="selected">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi" selected="selected">Audi</option>
</optgroup>
</select>';
$this->assertEquals($expected, form_dropdown('cars', $options, array('volvo', 'audi')));
}
开发者ID:rudyondolan,项目名称:CodeIgniter-Skeleton,代码行数:31,代码来源:bs_form_helper_test.php
示例3: index
public function index()
{
$this->load_auth();
if (!$this->module_auth->read) {
$this->session->set_flashdata('msg_warning', $this->module_auth->msg_read);
redirect('info');
}
$select_data = $this->load->model('usaha_model')->get_without();
$options = array();
if ($select_data) {
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
}
$js = 'id="usaha_id" class="input-medium"';
$options[999] = 'SEMUA PAJAK';
$select = form_dropdown('usaha_id', $options, 999, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_usaha'] = $select;
$options = array('1' => 'BELUM PROSES', '2' => 'SUDAH PROSES');
$js = 'id="proses_id" class="input-medium"';
$select = form_dropdown('proses_id', $options, 1, $js);
$select = preg_replace("/[\r\n]+/", "", $select);
$data['select_proses_id'] = $select;
$data['current'] = $this->module;
$data['controller'] = $this->controller;
$data['apps'] = $this->apps_model->get_active_only();
if ($this->controller != 'skpdj') {
$data['judul'] = "PENDATAAN - DAFTAR SPTPD BELUM MASUK (MASA PAJAK " . strtoupper($this->bulan(date('m') - 1)) . ")";
} else {
$data['judul'] = "PENETAPAN - SKPD JABATAN (MASA PAJAK " . strtoupper($this->bulan(date('m') - 1)) . ")";
}
$this->load->view('vsptpd_tegur', $data);
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:34,代码来源:sptpd_tegur.php
示例4: foundation_form_input
function foundation_form_input($name, $args = array())
{
$isValid = form_error($name) ? false : true;
if (!empty($args['default_value'])) {
$default_value = $args['default_value'];
} else {
$default_value = null;
}
$class = !empty($args['class']) ? $args['class'] : '';
$node = "<label>" . humanize($name);
if (!empty($args['as'])) {
switch ($args['as']) {
case 'collection':
if (!empty($args['collection'])) {
if ($args['allow_blank']) {
$args['collection'] = array_merge(array(" " => " "), $args['collection']);
}
$node .= form_dropdown($name, $args['collection'], set_value($name));
}
break;
case 'text':
$node .= form_textarea($name, set_value($name, $default_value));
break;
default:
# ...
break;
}
} else {
$node .= form_input($name, set_value($name, $default_value));
}
$node .= form_error($name, '<div class="error">', '</div>');
$node .= "</label>";
return $node;
}
开发者ID:chloereimer,项目名称:sleepy-me-hotel,代码行数:34,代码来源:foundation_form_helper.php
示例5: index
/**
* 列表页
*
*
* @param
*/
public function index()
{
//分类 select options
$cats = $this->category_model->lists();
$this->tree->init($cats);
if (!isset($this->current['catid'])) {
$this->current['catid'] = '';
}
$this->data['categories'] = $this->tree->get_tree_select(0, "<option value=\$id \$selected>\$spacer\$name</option>", $this->current['catid']);
if (!isset($this->current['position'])) {
$this->current['position'] = '';
}
$options = $this->config->item('position', 'position');
$options = array('' => '推荐位管理') + $options;
$this->data['positions'] = form_dropdown('position', $options, $this->current['position'], 'class="input input-auto"');
$data = $this->model->lists($this->current);
if (!$data) {
$data = array('lists' => '', 'pages' => '');
}
$data['name'] = $this->data['name'];
$data['categories'] = $this->data['categories'];
//分类select
$data['categories_lists'] = $this->category_model->categories;
$this->data['body'] = $this->load->view('content/list', $data, true);
Displayview::display('content/content', $this->data);
}
开发者ID:asonweb,项目名称:mycicms,代码行数:32,代码来源:content.php
示例6: display
/**
* Displays a Player based on an post request of the dropdown menu.
*/
public function display()
{
$this->data['transactions'] = $this->transactions->getAllTransactions();
$this->data['players'] = $this->players->getAllPlayers();
$this->load->helper('form');
$code = $this->input->post('player');
$this->data['Playername'] = $code;
$this->data['title'] = "Stock Ticker";
$this->data['left-panel-content'] = 'player/players';
$this->data['right-panel-content'] = 'player/transactions';
$this->data['player_code'] = $code;
$form = form_open('player/display');
$player_cash = array();
$player_names = array();
$players = $this->players->getAllPlayers();
foreach ($players as $item) {
array_push($player_names, $item->Player);
array_push($player_cash, $item->Cash);
}
$players = array_combine($player_names, $player_names);
$select = form_dropdown('player', $players, $code, "class = 'form-control'" . "onchange = 'this.form.submit()'");
$this->data['form'] = $form;
$this->data['select'] = $select;
$this->data['ptrans'] = $this->transactions->getPlayerTransactions($code);
$this->data['holdings'] = $this->transactions->getCurrentHoldings($code);
$this->render();
}
开发者ID:khoanguyen96,项目名称:stock-ticker,代码行数:30,代码来源:Player.php
示例7: form_per_page
function form_per_page($name = null, $options = null, $selected = null, $extra_attributes = null, $min = null, $max = null)
{
$ci = get_instance();
if (empty($options) || !is_array($options)) {
$options = array(5, 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000);
}
$min = (int) $min;
if ($min <= 0) {
$min = $options[0];
}
$all = $max == 'all';
$max = (int) $max;
if ($max <= 0) {
$max = $options[count($options) - 1];
}
if ($max < $min) {
$max = $min;
}
$result_options = array();
foreach ($options as $option) {
if ($option >= $min && $option <= $max) {
$result_options[(string) $option] = $ci->lang->line('ui_per_page', $option);
}
}
if ($all) {
$result_options['all'] = '-- ' . $ci->lang->line('ui_all') . ' --';
}
return form_dropdown($name, $result_options, $selected, $extra_attributes);
}
开发者ID:patilstar,项目名称:HMVC-WITH-CI,代码行数:29,代码来源:MY_form_helper.php
示例8: display_settings
/**
* Display settings sub-form for this variable type
*
* @param mixed $var_id The id of the variable: 'new' or numeric
* @param array $var_settings The settings of the variable
* @return array
*/
function display_settings($var_id, $var_settings)
{
// -------------------------------------
// Init return value
// -------------------------------------
$r = array();
// -------------------------------------
// Check current value from settings
// -------------------------------------
$maxlength = $this->get_setting('maxlength', $var_settings);
$size = $this->get_setting('size', $var_settings);
$pattern = $this->get_setting('pattern', $var_settings);
$text_direction = $this->get_setting('text_direction', $var_settings);
// -------------------------------------
// Build rows for values
// -------------------------------------
$r[] = array($this->setting_label(lang('variable_maxlength')), form_input(array('name' => $this->input_name('maxlength'), 'value' => $maxlength, 'size' => '4', 'maxlength' => '4', 'class' => 'x-small')));
$r[] = array($this->setting_label(lang('variable_size')), form_dropdown($this->input_name('size'), array('large' => lang('large'), 'medium' => lang('medium'), 'small' => lang('small'), 'x-small' => lang('x-small')), $size));
$r[] = array($this->setting_label(lang('variable_pattern'), lang('variable_pattern_help')), form_input(array('name' => $this->input_name('pattern'), 'value' => $pattern, 'class' => 'medium')));
// -------------------------------------
// Build settings text_direction
// -------------------------------------
$dir_options = '';
foreach (array('ltr', 'rtl') as $dir) {
$dir_options .= '<label class="low-radio">' . form_radio($this->input_name('text_direction'), $dir, $this->get_setting('text_direction', $var_settings) == $dir) . ' ' . lang("text_direction_{$dir}") . '</label>';
}
$r[] = array($this->setting_label(lang('text_direction')), $dir_options);
// -------------------------------------
// Return output
// -------------------------------------
return $r;
}
开发者ID:kentonquatman,项目名称:iofa,代码行数:39,代码来源:vt.low_text_input.php
示例9: display
/**
* Displays the details of the requested stock.
*/
public function display()
{
$this->load->helper('form');
if (!empty($this->input->post('stock'))) {
$code = $this->input->post('stock');
$this->data['src'] = "../assets/js/stock-history.js";
} else {
$code = $this->uri->segment(3);
$this->data['src'] = "../../assets/js/stock-history.js";
}
$this->data['title'] = "Stocks ~ {$code}";
$this->data['left-panel-content'] = 'stock/index';
$this->data['right-panel-content'] = 'stock/sales';
$this->data['stock_code'] = $code;
$this->data['trans'] = $this->transactions->getSalesTransactions($code);
$form = form_open('stock/display');
$stock_codes = array();
$stock_names = array();
$stocks = $this->stocks->getAllStocks();
$stock = $this->stocks->get($code);
foreach ($stocks as $item) {
array_push($stock_codes, $item->Code);
array_push($stock_names, $item->Name);
}
$stocks = array_combine($stock_codes, $stock_names);
$select = form_dropdown('stock', $stocks, $code, "class = 'form-control'" . "onchange = 'this.form.submit()'");
$this->data['Name'] = $stock->Name;
$this->data['Code'] = $stock->Code;
$this->data['Category'] = $stock->Category;
$this->data['Value'] = money_format("\$%i", $stock->Value);
$this->data['form'] = $form;
$this->data['select'] = $select;
$this->render();
}
开发者ID:khoanguyen96,项目名称:stock-ticker,代码行数:37,代码来源:Stock.php
示例10: display_field
function display_field($data)
{
$text_direction = $this->settings['field_text_direction'] == 'rtl' ? 'rtl' : 'ltr';
$member_list = array();
$deleted_user_message = '';
$this->EE->db->select('group_title, member_id, screen_name');
$this->EE->db->from('exp_members');
$this->EE->db->join('exp_member_groups', 'exp_members.group_id = exp_member_groups.group_id');
$this->EE->db->order_by('exp_member_groups.group_id asc, exp_members.screen_name');
if ($this->settings[CKI_MBLIST_KEY]['group_ids']) {
$this->EE->db->where_in('exp_members.group_id', explode('|', $this->settings[CKI_MBLIST_KEY]['group_ids']));
}
$q = $this->EE->db->get();
//Create a blank option
$member_list[''] = "None";
//Setup the member list array to send to the form_dropdown function
foreach ($q->result_array() as $member) {
$member_list[$member['group_title']][$member['member_id']] = $member['screen_name'];
$member_id_array[$member['member_id']] = $member['screen_name'];
}
//Quickly check to see (if on the EDIT page) that the previously selected member still exists
if (!array_key_exists($data, $member_id_array) && $data != '') {
//If not, append a warning message
$deleted_user_message = " <span class='notice'>Selected member no longer exists.</span>";
}
return form_dropdown($this->field_name, $member_list, $data, 'dir="' . $text_direction . '" id="' . $this->field_id . '"') . $deleted_user_message;
}
开发者ID:rsanchez,项目名称:cki.member_list.ee_addon,代码行数:27,代码来源:ft.cki_mblist.php
示例11: display_configuration
function display_configuration($field_name, $field_label, $field_type, $data)
{
$config = array();
$config["label"] = form_label($field_label);
$config["value"] = "<p>" . form_dropdown($field_name, $data["data_fields"], isset($data["default_settings"]["cf"][$field_name]) ? $data["default_settings"]["cf"][$field_name] : '') . "</p><p>Field to match: " . NBS . form_dropdown($field_name . "_relationship_field", $data["all_fields"], (isset($data["default_settings"]["cf"][$field_name . "_relationship_field"]) ? $data["default_settings"]["cf"][$field_name . "_relationship_field"] : '') . "</p>");
return $config;
}
开发者ID:kentonquatman,项目名称:iofa,代码行数:7,代码来源:datagrab_relationship.php
示例12: display_configuration
function display_configuration($field_name, $field_label, $field_type, $data)
{
$config = array();
$config["label"] = form_label($field_label) . NBS . anchor("http://brandnewbox.co.uk/support/details/importing_into_playa_fields_with_datagrab", "(?)", 'class="help"');
$config["value"] = "<p>" . form_dropdown($field_name, $data["data_fields"], isset($data["default_settings"]["cf"][$field_name]) ? $data["default_settings"]["cf"][$field_name] : '') . "</p><p>Field to match: " . NBS . form_dropdown($field_name . "_playa_field", $data["all_fields"], (isset($data["default_settings"]["cf"][$field_name . "_playa_field"]) ? $data["default_settings"]["cf"][$field_name . "_playa_field"] : '') . "</p>");
return $config;
}
开发者ID:thomasvandoren,项目名称:teentix-site,代码行数:7,代码来源:datagrab_playa.php
示例13: index
public function index()
{
$this->load->helper('form');
$this->load->helper('url');
$aOptions = array('none' => '', 'hourly' => 'hourly', 'daily' => 'daily');
$sAttributes = 'id="select_type"';
$data['select_type'] = form_label("Select either hourly or daily predictions:", 'select_type') . form_dropdown('select_type', $aOptions, '', $sAttributes);
for ($i = 0; $i < 36; $i++) {
$aOptionsHour[$i] = $i;
if ($i < 10) {
$aOptionsDay[$i] = $i;
// Get at days while I'm at it.
$aOptionsPop[$i * 10] = $i * 10;
}
}
$sAttributesPop = 'id = "select_pop"';
$sAttributesDay = 'id="select_day"';
$sAttributesHour = 'id="select_hour"';
$data['sel_hour'] = form_label("Select how many hours ahead:", 'select_hour') . form_dropdown('sel_hour', $aOptionsHour, '', $sAttributesHour);
$data['sel_day'] = form_label("Select how many days ahead:", 'select_day') . form_dropdown('sel_day', $aOptionsDay, '', $sAttributesDay);
$data['sel_pop'] = form_label("Select percent of percipitation:", 'select_pop') . form_dropdown('sel_pop', $aOptionsPop, '', $sAttributesPop);
$sAttributesData = 'id="select_data"';
$aOptionsData = array('Temperature' => 'temp', 'Precipitation' => 'pop');
$data['sel_data'] = form_label("Select details on either POP or Temperature:", 'select_data') . form_dropdown('sel_data', $aOptionsData, '', $sAttributesData);
$this->load->view('header_view');
$this->load->view('weather_view', $data);
$this->load->view('footer_view');
}
开发者ID:vitallish,项目名称:clonetana,代码行数:28,代码来源:weather.php
示例14: display_configuration
/**
* Generate the form elements to configure this field
*
* @param string $field_name the field's name
* @param string $field_label the field's label
* @param string $field_type the field's type
* @param string $data array of data that can be used to select from
* @return array containing form's label and elements
* @author Andrew Weaver
*/
function display_configuration($field_name, $field_label, $field_type, $data)
{
$config = array();
$config["label"] = form_label($field_label);
$config["value"] = form_dropdown($field_name, $data["data_fields"], isset($data["default_settings"]["cf"][$field_name]) ? $data["default_settings"]["cf"][$field_name] : '');
return $config;
}
开发者ID:kentonquatman,项目名称:iofa,代码行数:17,代码来源:Datagrab_fieldtype.php
示例15: editar
public function editar($accion, $codigo = "")
{
$lista = new stdClass();
if ($accion == "e") {
$filter = new stdClass();
$filter->ciclo = $codigo;
$ciclos = $this->ciclo_model->obtener($filter);
$lista->finicio = date_sql(substr($ciclos->CICC_FECHA_INICIO, 0, 10));
$lista->ffin = date_sql(substr($ciclos->CICC_FECHA_FIN, 0, 10));
$lista->descripcion = $ciclos->CICC_DESCRIPCION;
$lista->codigo = $ciclos->CICLOP_Codigo;
$lista->nombre = $ciclos->COMPC_Nombre;
$lista->tipociclo = $ciclos->TIPOCICLOP_Codigo;
} elseif ($accion == "n") {
$lista->finicio = "";
$lista->ffin = "";
$lista->descripcion = "";
$lista->codigo = "";
$lista->nombre = "";
$lista->tipociclo = "";
}
$arrTipociclo = array("0" => "::Seleccione::", "1" => "Ciclo 1", "2" => "Ciclo 2");
$data['titulo'] = $accion == "e" ? "Editar Ciclo" : "Crear Ciclo";
$data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
$data['form_close'] = form_close();
$data['lista'] = $lista;
$data['seltipociclo'] = form_dropdown('tipociclo', $arrTipociclo, $lista->tipociclo, "id='tipociclo' class='comboMedio'");
$data['oculto'] = form_hidden(array("accion" => $accion, "codigo_padre" => $codigo, "codigo" => $lista->codigo));
$this->load->view("maestros/ciclo_nuevo", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:30,代码来源:course.php
示例16: form_control
function form_control(&$setting)
{
switch ($setting->type) {
default:
case 'text':
$form_control = form_input(array('id' => $setting->slug, 'name' => $setting->slug, 'value' => $setting->value, 'class' => 'text width-20'));
break;
case 'textarea':
$form_control = form_textarea(array('id' => $setting->slug, 'name' => $setting->slug, 'value' => $setting->value, 'class' => 'width-20'));
break;
case 'password':
$form_control = form_password(array('id' => $setting->slug, 'name' => $setting->slug, 'value' => $setting->value, 'class' => 'text width-20'));
break;
case 'select':
$form_control = form_dropdown($setting->slug, $this->_format_options($setting->options), $setting->value, 'class="width-20"');
break;
case 'checkbox':
case 'radio':
$func = $setting->type == 'checkbox' ? 'form_checkbox' : 'form_radio';
$form_control = '';
foreach ($this->_format_options($setting->options) as $value => $label) {
$form_control .= ' ' . form_radio(array('id' => $setting->slug, 'name' => $setting->slug, 'checked' => $setting->value == $value, 'value' => $value)) . ' ' . $label;
}
break;
}
return $form_control;
}
开发者ID:Tapha,项目名称:pyrocms,代码行数:27,代码来源:Settings.php
示例17: index
public function index()
{
if (!$this->module_auth->read) {
$this->session->set_flashdata('msg_warning', $this->module_auth->msg_read);
redirect('info');
}
$data['current'] = 'pendaftaran';
$data['apps'] = $this->apps_model->get_active_only();
$select_data = $this->load->model('usaha_model')->get_select();
$options = array();
if ($select_data) {
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
}
$js = 'id="usahaid" class="input-xlarge" required ';
$data['select_usaha'] = form_dropdown('usahaid', $options, null, $js);
$select_data = $this->load->model('kecamatan_model')->get_select();
$options = array();
if ($select_data) {
foreach ($select_data as $row) {
$options[$row->id] = $row->nama;
}
}
$js = 'id="kecid" class="input-xlarge" required ';
$data['select_kecamatan'] = form_dropdown('kecid', $options, null, $js);
$this->load->view('vlap_pendaftaran', $data);
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:28,代码来源:lap_pendaftaran.php
示例18: editar
public function editar($accion, $codigo = "")
{
$lista = new stdClass();
$data = array();
if ($accion == "e") {
$filter = new stdClass();
$filter->profesorsociedad = $codigo;
$sociedades = $this->profesorsociedad_model->obtener($filter);
$lista->sociedad = $sociedades->SOCIEDP_Codigo;
$arrAfiliacion = explode("-", $sociedades->PROFSOCC_FechaSuscripcion);
$lista->afiliacion = $arrAfiliacion[2] . "/" . $arrAfiliacion[1] . "/" . $arrAfiliacion[0];
} elseif ($accion == "n") {
$lista->sociedad = 0;
$lista->afiliacion = "__/__/__";
}
$arrMes = array("0" => "Mes", "01" => "Enero", "02" => "Febrero", "03" => "Marzo", "04" => "Abril", "05" => "Mayo", "06" => "Junio", "07" => "Julio", "08" => "Agosto", "09" => "Setiembre", "10" => "Octubre", "11" => "Noviembre", "12" => "Diciembre");
$arrAno[0] = "Año";
for ($i = 1950; $i <= 2020; $i++) {
$arrAno[$i] = $i;
}
$data['arrmes'] = $arrMes;
$data['selmesi'] = form_dropdown('mesi', $arrMes, 0, "id='mesi' class='comboMedio'");
$data['selmesf'] = form_dropdown('mesf', $arrMes, 0, "id='mesf' class='comboMedio'");
$data['selanoi'] = form_dropdown('anoi', $arrAno, 0, "id='anoi' class='comboMedio'");
$data['selanof'] = form_dropdown('anof', $arrAno, 0, "id='anof' class='comboMedio'");
$data['selsociedad'] = form_dropdown('sociedad', $this->sociedad_model->seleccionar('0'), $lista->sociedad, "id='sociedad' class='comboGrande'");
$data['lista'] = $lista;
$data['oculto_det'] = form_hidden(array("accion_det" => $accion, "codigo_det" => $codigo));
$this->load->view("ventas/sociedad_nuevo", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:30,代码来源:profesorsociedad.php
示例19: revenueForm
function revenueForm()
{
$revenueForm = array();
$this->load->model('revenue_model');
$economic = $this->expenditure_model->exp_economic();
$donor = $this->agreement_model->getDonor();
$source = $this->expenditure_model->getsource_Ndese();
$budget = $this->agreement_model->getBudget();
//REVENUE MASTER-------------------------------------------------------------------------------------
$revenueForm['VOUCHER_NUM'] = array(form_label('भौचर नम्बर :', 'VOUCHER_NUM'), form_input(array('name' => 'VOUCHER_NUM', 'class' => 'number')));
$revenueForm['VOUCHER_EDATE'] = array(form_label('भौचर मिति :', 'VOUCHER_EDATE'), form_input(array('name' => 'VOUCHER_EDATE', 'class' => 'number', 'id' => 'rvoucherEdate')));
$revenueForm['VOUCHER_NDATE'] = array(form_input(array('name' => 'VOUCHER_NDATE', 'class' => 'number', 'id' => 'rvoucherNdate')));
$revenueForm['ACC_CODE'] = array(form_label('बुद्गेत सिर्सक ', 'ACC_CODE'), form_input(array('name' => 'ACC_CODE', 'id' => 'typeauto', 'class' => 'number')), form_input(array('name' => 'ACC_CODE', 'id' => 'autocomplete', 'width' => '500px')));
//form_dropdown('ACC_CODE', $budget, '', 'class="dropdown"'));
$revenueForm['CREATED_BY'] = array(form_label(' प्रतिपादन BY:', 'CREATED_BY'), form_input(array('name' => 'CREATED_BY')));
$revenueForm['CREATED_DATE'] = array(form_label('प्रतिपादन मिति :', 'CREATED_DATE'), form_input(array('name' => 'CREATED_DATE')));
$revenueForm['AGREEMENET_ID'] = array(form_label(' agreement id :', 'AGREEMENET_ID'), form_input(array('name' => 'AGREEMENET_ID')));
// REVENUE DETAIL--------------------------------------------------------------------------------------
// $revenueForm['INFO_ID'] = array(form_label('राजस्व कोड :', 'INFO_ID'), form_input(array('name' => 'INFO_ID[]', 'class' => 'number')));
$revenueForm['AMOUNT_EDESC'] = array(form_label('मूल्य EDESC :', 'AMOUNT_EDESC'), form_input(array('name' => 'AMOUNT_EDESC[]', 'class' => 'number')));
$revenueForm['AMOUNT_NDESC'] = array(form_input(array('name' => 'AMOUNT_NDESC[]', 'class' => 'number')));
$revenueForm['BANK_VOUCHER_NUM'] = array(form_label('बैंक भौचर नम्बर :', 'BANK_VOUCHER_NUM'), form_input(array('name' => 'BANK_VOUCHER_NUM[]', 'class' => 'number')));
$revenueForm['BANK_VOUCHER_DATE'] = array(form_label('बैंक भौचर मिति :', 'BANK_VOUCHER_DATE'), form_input(array('name' => 'BANK_VOUCHER_DATE[]', 'class' => 'number')));
$revenueForm['BANK_CODE'] = array(form_label('बैंक कोड :', 'BANK_CODE'), form_input(array('name' => 'BANK_CODE[]')));
// $revenueForm['REVENUE_DETAIL'] = array(form_label('revenu detail :', 'REVENUE_DETAIL'), form_input(array('name' => 'REVENUE_DETAIL', 'class' => 'REVENUE_DETAIL')));
// REVENUE DETAIL DROPDOWNS----------------------------------------------------------------------
$revenueForm['AMOUNT'] = array(form_label('मुल्य :', 'AMOUNT'), form_input(array('name' => 'AMOUNT[]', 'class' => 'AMOUNT')));
$revenueForm['ECONOMIC_CODE5'] = array(form_dropdown('ECONOMIC_CODE5[]', $economic, '', ' class="dropdown"', 'id="reve_economic"'));
$revenueForm['AMOUNT_TYPE'] = array(form_dropdown('AMOUNT_TYPE[]', array('d' => 'डेबिट ', 'c' => 'क्रेडिट ')));
$revenueForm['SOURCE_TYPE_CODE'] = array(form_dropdown('SOURCE_TYPE_CODE[]', $source, '', 'class="source"'));
$revenueForm['DONOR_CODE'] = array(form_dropdown('DONOR_CODE[]', $donor, '', 'class="donor"'));
$revenueForm['TRANSIT'] = array(form_dropdown('TRANSIT', array('कोलेनिका ', 'बा . ख '), '', 'class="transit"'));
$revenueForm['SUBMIT'] = array(form_submit('SUBMIT', 'Submit'));
return $revenueForm;
}
开发者ID:pshreez,项目名称:PHP,代码行数:35,代码来源:revenue.php
示例20: page_views_widget_form
function page_views_widget_form($num = 1)
{
$widget = 'page_views_widget_' . $num;
// имя для формы и опций = виджет + номер
// получаем опции
$options = mso_get_option($widget, 'plugins', array());
if (!isset($options['header'])) {
$options['header'] = '';
}
if (!isset($options['limit'])) {
$options['limit'] = 10;
}
if (!isset($options['page_type'])) {
$options['page_type'] = 0;
}
if (!isset($options['format'])) {
$options['format'] = '[A][TITLE][/A] <sup>[COUNT]</sup>';
}
// вывод самой формы
$CI =& get_instance();
$CI->load->helper('form');
$CI->db->select('page_type_id, page_type_name');
$query = $CI->db->get('page_type');
$types = array(0 => t('Все типы'));
if ($query->num_rows() > 0) {
foreach ($query->result_array() as $page) {
$types[$page['page_type_id']] = $page['page_type_name'];
}
}
$form = mso_widget_create_form(t('Заголовок'), form_input(array('name' => $widget . 'header', 'value' => $options['header'])), '');
$form .= mso_widget_create_form(t('Количество записей'), form_input(array('name' => $widget . 'limit', 'value' => $options['limit'])), '');
$form .= mso_widget_create_form(t('Тип записей'), form_dropdown($widget . 'page_type', $types, array('value' => $options['page_type'])), '');
$form .= mso_widget_create_form(t('Формат'), form_input(array('name' => $widget . 'format', 'value' => $options['format'])), t('<strong>[TITLE]</strong> - название записи<br><strong>[COUNT]</strong> - просмотров в день<br><strong>[ALLCOUNT]</strong> - всего просмотров<br><strong>[A]</strong>ссылка<strong>[/A]</strong>'));
return $form;
}
开发者ID:Kmartynov,项目名称:cms,代码行数:35,代码来源:index.php
注:本文中的form_dropdown函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论