function styleConfig() { echo '<div class="beta_box">'; div_open("beta_header"); echo "Personlig stilvalg - under utprøving! (beta)"; div_close(); echo '<div id="testediv"> </div>'; echo '<div id="xhrfeedback"> </div>'; h3("Velg en stil"); form_start_custom("styleedit", "javascript:changeUserStyle('modules/styleService.php')", "POST"); ?> <select id="userStyles"> <option value="NULL">Velg stilark</option> <option value="NULL">Gå tilbake til standard</option> </select> <script type="text/javascript"> fetchStyles('modules/styleService.php'); </script> <?php form_submit("submit", "Bruk valgt stil"); form_end(); h3("Legg opp en ny stil"); form_start_custom("styleadd", "javascript:addUserStyle('modules/styleService.php')", "POST"); form_textfield2("Navn", "styleName", ""); br(); form_textfield2("URL", "styleURL", ""); br(); form_submit("submit", "Legg opp stil"); br(); form_end(); h3("Stiler du kan slette"); echo "(Disse er lagt opp av deg og ikke i bruk av noen andre for øyeblikket.)"; div_open("", "", "deleteStyleList"); div_close(); div_close(); }
function showModulesDropDown($module = "") { $table = getModules(); div_open(); form_start_post(); form_select("module"); if ($table) { while ($row = nextResultInTable($table)) { if ($module == $row['module']) { form_option($row['module'], $row['module'], "true"); } else { form_option($row['module'], $row['module']); } } } else { // no modules with settings available form_option("-", ""); } form_select_end(); // this module form_hidden("m_c", "showSettingsGUI"); // button form_submit("submit", getString("settings_show_settings", "Vis innstillinger")); form_end(); div_close(); }
<table id="ejemplares" class="display table table-hover"> <thead> <tr> <th>Numero Adquisición</th> <th>ejemplar</th> </tr> </thead> </table> </div> </div> <br><br> <?php echo div_open('tab-pane fade', 'nueva_ficha'); $this->load->view('Shared/templates/nuevaficha'); echo div_close(); //close tab-pane fade ?> </div></div></div></div> </body> <footer> <?php $this->load->view('/Shared/Partial/footer'); ?> </footer> <!-- Modal --> <div id="clear">
echo form_label('Escuela', 'escuela', $attLabel); echo div_open('col-sm-10', ''); echo form_dropdown('escuela', $escuelas, '', 'class="form-control" id="escuela" required style="max-width:60%;"'); echo div_close(); echo div_close(); $data = array('type' => 'text', 'name' => 'coleccion', 'id' => 'dcoleccion', 'value' => $coleccion, 'class' => 'des form-control'); echo div_open('form-group', ''); echo form_label('Coleccion', 'coleccion', $attLabel); echo div_open('col-sm-10', ''); echo form_dropdown('coleccion', $colecciones, '', 'class="form-control" id="coleccion" style="max-width:60%; required"'); echo div_close(); echo div_close(); $data = array('type' => 'text', 'name' => 'tipo_de_material', 'id' => 'dtipo_de_material', 'value' => $tipo_de_material, 'data-live-search' => 'true', 'class' => 'des form-control'); echo div_open('form-group', ''); echo form_label('Tipo de material', 'tipo_de_material', $attLabel); echo div_open('col-sm-10', ''); echo form_dropdown('coleccion', $tipos_material, '', 'class="form-control" id="tipo_de_material" style="max-width:60%; required"'); echo div_close(); echo div_close(); /**/ ?> <div class="panel panel-info" id="panel"> <div class="panel-heading">Etiqueta relacionada</div> <div class="panel-body" id="panel" style="font-size:10px;"> <div class="panel panel-danger" id="panel"> <div class="panel-heading">Este ejemplar tiene relacion con esta etiqueta</div> </div>
//close form group 4 echo div_open('form-group', ''); $attributes = array('class' => 'sr-only control-label'); echo form_label('Liga a Recursos Electronicos:', 'liga_recursos', $attributes); $data = array('class' => 'form-control', 'id' => 'liga_recursos', 'name' => 'liga_recursos', 'placeholder' => 'Liga a Recursos Electronicos'); echo form_input($data); echo div_close(); //close form group 4 echo div_open('form-group', ''); $attributes = array('class' => 'sr-only control-label'); echo form_label('Fecha de Publicación:', 'fecha_publicacion', $attributes); $data = array('class' => 'form-control', 'id' => 'fecha_publicacion', 'name' => 'fecha_publicacion', 'placeholder' => 'Fecha de Publicación'); echo form_input($data); echo div_close(); //close form group 4 echo div_open('form-group', ''); $attributes = array('class' => 'sr-only control-label'); echo form_label('Editorial:', 'editorial', $attributes); $data = array('class' => 'form-control', 'id' => 'editorial', 'name' => 'editorial', 'placeholder' => 'Editorial', 'required' => 'required'); echo form_input($data); echo div_close(); //close form group 4 $data = array('id' => 'submi', 'type' => 'submit', 'class' => 'form-control btn-primary', 'value' => 'Registrar'); echo form_submit($data, "Registrar"); echo form_close(); echo div_close(); //close col-md-6 echo div_close(); // close row echo div_close(); // close container
function previewArticle($article) { if (!$article) { h3("Fant ikke artikkelen."); } else { table_open(); tr_open(); td_open(1); h1_link($article['title'], url_to_article($article['articleid'])); articleMetaInfo($article['author'], $article['author_username'], make_date($article['date_posted']), make_time($article['time_posted']), $article['language']); div_open("textbody", ""); $paragraph = makeReadyForPrint(nl2br($article['body'])); echo $paragraph; div_close(); td_close(); tr_close(); table_close(); } }
<div class="col-sm-12"> <div class="page-header"> <h2><span class="glyphicon glyphicon-gift"></span>Más Productos <a href=""><small> / Tienda Balerom</small></a></h2> </div> <!-- Thumbnails --> <div class="row"> <?php for ($i = 1; $i <= 4; $i++) { echo div_open("col-xs-6 col-md-3"); echo a_open("thumbnail", "#"); echo img("http://placehold.it/500x300"); echo a_close(); echo div_close(); } ?> </div> </div>
/** * edit function. * * @access public * @param int $id (default: 0) * @return void */ public function edit($id = 0) { $this->output->enable_profiler(false); if (!$this->auth->loggedin()) { redirect('user/login'); } $uid = $id > 0 ? intval($id) : intval($this->auth->userid()); $user = $this->user_model->get_user($uid); $data['title'] = $this->system_model->get('app_name'); $data['partial'] = 'admin_users'; $data['stylesheets'] = array('buttons_purple'); $data['breadcrumbs'] = array(array('data' => anchor('/', $data['title']), 'mode' => 'unavailable'), array('data' => anchor('admin', ucfirst(lang('administration')))), array('data' => anchor('admin/users', ucfirst(lang('users')))), array('data' => anchor('user/edit', ucfirst(lang('edit_user'))), 'mode' => 'current')); $html = '<br>'; //heading(ucfirst(lang('edit_user')), 1); $html .= div_open('row') . div_open('eight centered columns'); if ($this->input->post()) { // !Process updated fields. $user = array(); $username = $this->input->post('username'); $firstname = $this->input->post('firstname'); $lastname = $this->input->post('lastname'); $email = $this->input->post('email'); $phone = $this->input->post('phone'); if ($username) { $user['username'] = $username; } if ($firstname) { $user['firstname'] = $firstname; } if ($lastname) { $user['lastname'] = $lastname; } if ($email) { $user['email'] = $email; } if ($phone) { $user['phone'] = $phone; } $ok = $this->user_model->update_user($id, $user); $html .= p('updated: ' . $ok); } $html .= form_open(uri_string(), array('class' => 'custom')); $html .= form_hidden('id', $id); $html .= row(columns(form_label(ucfirst(lang('username')) . ':' . span('*', 'required'), 'username') . form_input(array('type' => 'text', 'name' => 'username', 'id' => 'username', 'class' => 'expand', 'value' => $user['username'])), 6, 'end')); $html .= row(columns(form_label(ucfirst(lang('email_address')) . ':' . span('*', 'required'), 'email') . form_input(array('type' => 'email', 'name' => 'email', 'id' => 'email', 'class' => 'expand', 'value' => $user['email'])), 6) . columns(form_label(ucfirst(lang('phone_number')) . ':', 'phone') . form_input(array('type' => 'text', 'name' => 'phone', 'id' => 'phone', 'class' => 'expand', 'value' => $user['phone'])), 6)); $html .= row(columns(form_label(ucfirst(lang('firstname')) . ':', 'firstname') . form_input(array('type' => 'text', 'name' => 'firstname', 'id' => 'firstname', 'class' => 'expand', 'value' => $user['firstname'])), 6) . columns(form_label(ucfirst(lang('lastname')) . ':', 'lastname') . form_input(array('type' => 'text', 'name' => 'lastname', 'id' => 'lastname', 'value' => $user['lastname'])), 6)); $html .= button_group(array(button_anchor('admin/users', lang('button_cancel'), 'radius'), form_input(array('type' => 'submit', 'class' => 'radius button', 'value' => lang('button_save')))), 'radius right'); $html .= form_close() . div_close(); /* $html .= div_open('four columns'); $html .= div_open('radius panel'); $html .= heading(ucfirst(lang('role')), 4); $html .= form_open('user/role', array('class' => 'custom')); $html .= form_hidden('source', $this->encrypt->encode(current_url())); $allroles = $this->role_model->list_roles(); $role = $this->role_model->user_mapping($uid); $role = $this->role_model->get_role($role['role']); $html .= form_label( ucfirst(lang('select')).' '.lang('role').':', 'role'); $html .= form_dropdown( 'role', $allroles, $role['id'], 'class="expand" id="role"'); $html .= form_input(array( 'type' => 'submit', 'class' => 'small radius button', 'value' => lang('button_save'))); $html .= form_close(); */ $html .= div_close(); $data['html'] = $html; $this->system_model->view('template', $data); }
<div class="col-sm-12"> <div class="page-header"> <h2> <span class="glyphicon glyphicon-film"></span> Video-Producciones <a href=""><small>Videos Musicales</small></a> </h2> </div> <!-- Thumbnails --> <?php for ($i = 1; $i <= 4; $i++) { echo div_open("col-xs-6 col-md-3 hvr-underline-from-center"); echo a_open("thumbnail", "#"); echo img("data/videos/tmb/{$i}.png"); echo a_close(); echo div_close(); } ?> </div>
/** * org function. * * @access public * @return void */ public function org() { $this->output->enable_profiler(TRUE); if (!$this->auth->loggedin()) { redirect('user/login'); } $uid = intval($this->auth->userid()); $user = $this->user_model->get_user($uid); $this->form_validation->set_rules('org_name', lang('org_name'), 'trim|required'); $this->form_validation->set_rules('app_name', lang('app_name'), 'trim|required'); if ($this->form_validation->run() == true) { if ($this->input->post('org_name') && strlen($this->input->post('org_name')) > 0) { $this->system_model->set('org_name', $this->input->post('org_name')); } if ($this->input->post('app_name') && strlen($this->input->post('app_name')) > 0) { $this->system_model->set('app_name', $this->input->post('app_name')); } if ($this->input->post('org_type') && strlen($this->input->post('org_type')) > 0) { $this->system_model->set('org_type', $this->input->post('org_type')); } } $org_type = $this->system_model->get('org_type'); $app_name = $this->system_model->get('app_name'); $org_name = $this->system_model->get('org_name'); $call_org = $org_type ? $org_type : lang('organization'); $data['title'] = $app_name; /* $data['breadcrumbs'] = array( array('data' => anchor('/', $app_name), 'mode' => 'unavailable'), array('data' => anchor('admin', ucfirst(lang('administration')))), array('data' => anchor('admin/org', ucfirst(lang('the_organization'))), 'mode' => 'current')); */ $content = row(columns(heading(ucfirst(lang('administer')) . ' ' . span($call_org, 'org_type', 'org_type') . lang('org_pluralizer'), 1), 12)); $content .= form_open('admin/org', array('class' => 'custom')) . div_open('row') . div_open('six columns end'); $content .= form_label(sprintf(lang('input_org_name'), $call_org), 'org_name'); $content .= form_input(array('type' => 'text', 'name' => 'org_name', 'id' => 'org_name', 'class' => form_error('org_name') ? 'twelve error' : 'twelve', 'value' => $org_name)); $content .= form_label(lang('input_app_name'), 'app_name'); $content .= form_input(array('type' => 'text', 'name' => 'app_name', 'id' => 'app_name', 'class' => form_error('app_name') ? 'twelve error' : 'twelve', 'value' => $app_name)); $content .= form_label(lang('input_org_type'), 'org_type'); $content .= $org_type ? form_input(array('type' => 'text', 'name' => 'org_type', 'id' => 'org_type', 'class' => 'twelve', 'value' => $call_org)) : form_input(array('type' => 'text', 'name' => 'org_type', 'id' => 'org_type', 'class' => 'twelve', 'placeholder' => $call_org)); $content .= div_close(2); $content .= form_input(array('type' => 'submit', 'class' => 'radius button', 'value' => lang('button_save'))); $content .= form_close(); $this->javascript->keyup('#org_type', '$("#org_name").val($("#org_type").val());'); $html = $content; $data['html'] = $html; $this->system_model->view('template', $data); }
$title = $song->song_title; $year = $song->song_year; $url = base_url() . "song/{$id}/" . strToUrl($title); echo a_open('list-group-item', $url); echo "{$title} ({$year})"; echo a_close(); } echo div_close(); echo div_close(); } // Case: Found a match in Songs from an album if ($albumSongCount > 0) { echo br(); echo div_open('col-sm-12 col-md-6'); echo heading("Canciones ({$albumSongCount})", 4, array('class' => 'page-header')); echo div_open('list-group'); foreach ($albumSongList as $song) { $id = $song->track_id; $title = $song->track_title; $url = base_url() . "album/{$id}/" . strToUrl($title); echo a_open('list-group-item', $url); echo $title; echo a_close(); } echo div_close(); echo div_close(); } } ?> </div>