Exemplo n.º 1
0
 /**
  * Render
  *
  * @param object $object
  * @return string
  */
 public static function render($object)
 {
     $input = $object->options['input'];
     $filter = $object->filter;
     $full_text_search = $filter['full_text_search'] ?? null;
     unset($filter['full_text_search']);
     // generating form
     $table = ['header' => ['name' => i18n(null, 'Column'), 'value' => i18n(null, 'Value'), 'sep' => ' ', 'value2' => ' '], 'options' => []];
     // fields
     foreach ($filter as $k => $v) {
         if (!empty($v['range'])) {
             $table['options'][$k] = ['name' => ['value' => i18n(null, $v['name']) . ':', 'width' => '25%', 'class' => 'list_filter_name'], 'value' => ['value' => self::render_column($v, $k, false, $input), 'width' => '30%'], 'sep' => ['value' => '—', 'width' => '1%', 'class' => 'list_filter_value'], 'value2' => ['value' => self::render_column($v, $k, true, $input), 'width' => '30%']];
         } else {
             $table['options'][$k] = ['name' => ['value' => i18n(null, $v['name']) . ':', 'width' => '25%', 'class' => 'list_filter_name'], 'value' => ['value' => self::render_column($v, $k, false, $input), 'width' => '30%']];
         }
     }
     // full text search last
     if (!empty($full_text_search)) {
         $names = [];
         foreach ($full_text_search as $v) {
             $names[] = i18n(null, $filter[$v]['name']);
         }
         $table['options']['full_text_search'] = ['name' => ['value' => i18n(null, 'Text Search') . ':', 'class' => 'list_filter_name'], 'value' => ['value' => html::input(['name' => 'filter[full_text_search]', 'class' => 'list_filter_full_text_search', 'size' => 15, 'value' => $input['filter']['full_text_search'] ?? null])], 'value2' => ['value' => implode(', ', $names), 'class' => 'list_filter_value']];
     }
     $body = html::table($table);
     $footer = html::button2(['name' => 'submit_filter', 'value' => i18n(null, 'Submit'), 'type' => 'primary', 'onclick' => "numbers.modal.hide('list_{$object->list_link}_filter'); \$('#list_{$object->list_link}_form').attr('target', '_self'); \$('#list_{$object->list_link}_form').attr('no_ajax', ''); return true;"]);
     return html::modal(['id' => "list_{$object->list_link}_filter", 'class' => 'large', 'title' => i18n(null, 'Filter'), 'body' => $body, 'footer' => $footer]);
 }
 public static function sign_up_sign_in($url)
 {
     // TODO: add sign in as guest.
     $dropdown_content = array('class' => 'dropdown-menu', 'style' => 'padding: 15px; padding-bottom: 0px;');
     $form = array('method' => 'post', 'action' => $url, 'accept-charset' => 'UTF-8');
     $username = array('type' => 'text', 'placeholder' => 'Username', 'id' => 'username', 'name' => 'username');
     $password = array('type' => 'password', 'placeholder' => 'Password', 'id' => 'password', 'name' => 'password');
     $submit = array('value' => 'Sign In', 'class' => 'btn btn-primary btn-block', 'id' => 'sign-in');
     return html::ul('nav pull-right', html::li(html::a(new moodle_url('/login/signup.php'), 'Sign Up')) . bootstrap::list_divider() . bootstrap::dropdown('Sign In', html::div($dropdown_content, html::form($form, html::input($username) . html::input($password) . html::checkbox('rememberusername', 'Remember username') . html::submit($submit)))));
 }
 public static function inline_search_append($action, $placeholder, $value, $submit_text)
 {
     $form_attributes['class'] = 'inline-form';
     $form_attributes['method'] = 'get';
     $form_attributes['action'] = $action;
     $input_attributes['type'] = 'text';
     $input_attributes['name'] = 'query';
     $input_attributes['placeholder'] = $placeholder;
     $input_attributes['value'] = $value;
     return html::form($form_attributes, html::div('input-append', html::input($input_attributes) . html::submit(array('value' => $submit_text))));
 }
Exemplo n.º 4
0
 /**
  * see html::calendar()
  */
 public static function calendar($options = [])
 {
     // include js & css files
     if (empty($options['readonly'])) {
         layout::add_js('/numbers/media_submodules/numbers_frontend_components_calendar_numbers_media_js_base.js');
         layout::add_css('/numbers/media_submodules/numbers_frontend_components_calendar_numbers_media_css_base.css');
     }
     // font awesome icons
     library::add('fontawesome');
     // widget parameters
     $type = $options['calendar_type'] ?? $options['type'] ?? 'date';
     $widget_options = ['id' => $options['id'], 'type' => $type, 'format' => $options['calendar_format'] ?? format::get_date_format($type), 'date_week_start_day' => $options['calendar_date_week_start_day'] ?? 1, 'date_disable_week_days' => $options['calendar_date_disable_week_days'] ?? null, 'master_id' => $options['calendar_master_id'] ?? null, 'slave_id' => $options['calendar_slave_id'] ?? null];
     $options['type'] = 'text';
     // determine input size
     $placeholder = format::get_date_placeholder($widget_options['format']);
     $options['size'] = strlen($placeholder);
     // set placeholder
     if (!empty($options['placeholder']) && $options['placeholder'] == 'format::get_date_placeholder') {
         $options['placeholder'] = $placeholder;
         $options['title'] = ($options['title'] ?? '') . ' (' . $placeholder . ')';
     }
     if (isset($options['calendar_icon']) && ($options['calendar_icon'] == 'left' || $options['calendar_icon'] == 'right')) {
         $position = $options['calendar_icon'];
         if (i18n::rtl()) {
             if ($position == 'left') {
                 $position = 'right';
             } else {
                 $position = 'left';
             }
         }
         $icon_type = $type == 'time' ? 'clock-o' : 'calendar';
         unset($options['calendar_icon']);
         if (empty($options['readonly'])) {
             $icon_onclick = 'numbers_calendar_var_' . $options['id'] . '.show();';
         } else {
             $icon_onclick = null;
         }
         $icon_value = html::span(['onclick' => $icon_onclick, 'class' => 'numbers_calendar_icon numbers_prevent_selection', 'value' => html::icon(['type' => $icon_type])]);
         $result = html::input_group(['value' => html::input($options), $position => $icon_value, 'dir' => 'ltr']);
         $div_id = $options['id'] . '_div_holder';
         $result .= html::div(['id' => $div_id, 'class' => 'numbers_calendar_div_holder']);
         $widget_options['holder_div_id'] = $div_id;
     } else {
         $result = html::input($options);
     }
     // we do not render a widget if readonly
     if (empty($options['readonly'])) {
         layout::onload('numbers_calendar(' . json_encode($widget_options) . ');');
     }
     return $result;
 }
Exemplo n.º 5
0
 /**
  * Captcha
  *
  * @param array $options
  * @return string
  */
 public static function captcha($options = [])
 {
     $captcha_link = $options['id'] ?? 'default';
     // validation
     if (!empty($options['validate'])) {
         return self::validate($captcha_link, $options['password']);
     }
     // generating password
     $password = self::generate_password($captcha_link, $options['password_letters'] ?? null, $options['password_length'] ?? 5);
     array_key_unset($options, ['password_letters', 'password_length']);
     $image_options = ['src' => 'data:image/png;base64,' . base64_encode(self::draw($password, ['return_image' => true])), 'style' => $options['img_style'] ?? 'vertical-align: middle;'];
     if (!empty($options['only_image'])) {
         return html::img($image_options);
     } else {
         return '<table width="100%"><tr><td>' . html::input($options) . '</td><td width="1%">&nbsp;</td><td width="1%">' . html::img($image_options) . '</td></tr></table>';
     }
 }
Exemplo n.º 6
0
 private function createManageLink($module, $type = 'info')
 {
     static $users;
     if (empty($users)) {
         $users = $this->loadModel('user')->getPairs('noletter');
     }
     $linkHtml = $module->name;
     if (common::hasPriv('info', 'TreeEdit')) {
         $linkHtml .= ' ' . html::a(helper::createLink('info', 'TreeEdit', "module={$module->id}"), $this->lang->tree->edit, '', 'class="iframe"');
     }
     if (common::hasPriv('info', 'TreeManage')) {
         $linkHtml .= ' ' . html::a(helper::createLink('info', 'TreeManage', "root={$module->root}&module={$module->id}&type={$type}"), $this->lang->tree->child);
     }
     if (common::hasPriv('info', 'TreeDelete')) {
         $linkHtml .= ' ' . html::a(helper::createLink('info', 'TreeDelete', "root={$module->root}&module={$module->id}"), $this->lang->delete, 'hiddenwin');
     }
     if (common::hasPriv('info', 'TreeUpdateOrder')) {
         $linkHtml .= ' ' . html::input("orders[{$module->id}]", $module->order, 'style="width:30px;text-align:center"');
     }
     return $linkHtml;
 }
Exemplo n.º 7
0
          <td colspan='2'><?php 
echo html::submitButton();
?>
</td>
        </tr>
      </table>
    </form>

    <div class='hide row-custom'>
      <div class='row form-group'>
        <div class="col-xs-3"> <?php 
echo html::input('label[key]', '', "class='form-control' placeholder='{$lang->product->placeholder->label}'");
?>
</div>
        <div class="col-xs-8"> <?php 
echo html::input('value[key]', '', "class='form-control' placeholder='{$lang->product->placeholder->value}'");
?>
</div>
        <div class="col-xs-1">
          <?php 
echo html::a('javascript:;', "<i class='icon-plus'></i>", "class='btn btn-link pull-left btn-mini btn-add'");
?>
          <?php 
echo html::a('javascript:;', "<i class='icon-remove'></i>", "class='btn btn-link pull-left btn-mini btn-remove'");
?>
        </div>
      </div>
    </div>

  </div>
</div>
Exemplo n.º 8
0
?>
            <?php 
echo html::hidden('mode', 'fixed');
?>
            <?php 
echo html::hidden('orderBy', 'pv_desc');
?>
            <table class='table table-borderless'>
              <tr>
                <td style='padding:4px'>
                  <?php 
echo html::input('begin', $this->get->begin, "placeholder='{$lang->stat->begin}' class='form-date w-120px'");
?>
 
                  <?php 
echo html::input('end', $this->get->end, "placeholder='{$lang->stat->end}' class='form-date w-120px'");
?>
                  <?php 
echo html::submitButton($lang->stat->view, "btn btn-xs btn-info");
?>
                </td>
              </tr>
            </table>
          </form>
        </li>
       </ul>
    </div>
  </div>
  <table class='table table-hover table-bordered table-striped tablesorter'>
    <thead>
      <tr class='text-center'>
Exemplo n.º 9
0
    die;
}
include "header.html.php";
?>
<form method='post' action='<?php 
echo helper::createLink('ui', 'setlogo');
?>
' class='ve-form mw-800px center-block' enctype='multipart/form-data'>
  <table class='table table-form'>
    <tr>
      <th><?php 
echo $lang->site->name;
?>
</th>
      <td><?php 
echo html::input('name', $this->config->site->name, "class='form-control'");
?>
</td><td></td>
    </tr>
    <tr>
      <th>
        <?php 
echo $lang->ui->logo;
?>
      </th>
      <td><?php 
echo html::file('files', "class='form-control'");
?>
</td>
      <td><?php 
echo html::select('theme', $lang->ui->logoList, '', "class='form-control'");
Exemplo n.º 10
0
    echo "<input type='button' tabindex='-1' class='addbutton btn btn-xs' onclick='postInsert({$stepID})' value='{$lang->testcase->insertAfter}'  />";
    echo "<input type='button' tabindex='-1' class='delbutton btn btn-xs' onclick='deleteRow({$stepID})'  value='{$lang->testcase->deleteStep}'   />";
    echo "</div></td>";
    echo '</tr>';
}
?>
          </table>
        </td> 
      </tr>
      <tr>
        <th><?php 
echo $lang->testcase->keywords;
?>
</th>
        <td colspan='3'><?php 
echo html::input('keywords', $keywords, "class='form-control'");
?>
</td>
      </tr>  
       <tr>
        <th><?php 
echo $lang->testcase->files;
?>
</th>
        <td colspan='3'><?php 
echo $this->fetch('file', 'buildform');
?>
</td>
      </tr>  
      <tr>
        <td colspan='4' class='text-center'><?php 
Exemplo n.º 11
0
}
echo "<div class='form-group'><div class='col-xs-8 col-md-offset-2'>" . html::submitButton() . "</div></div>";
echo html::hidden('parent', $parent);
?>
      
    </div>
  </div>
</form>
<div class='child hide'>
  <div class='form-group category'>
    <div class='col-xs-6 col-md-4 col-md-offset-2'><?php 
echo html::input("children[]", '', "class='form-control' placeholder='{$this->lang->category->name}'");
?>
</div>
    <div class='col-xs-6 col-md-4'><?php 
echo html::input("alias[]", '', "class='form-control' placeholder='{$this->lang->category->alias}'");
?>
</div>
    <div class='col-xs-6 col-md-2'>
      <?php 
echo "<i class='icon-move sort-handle'> </i>";
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-plus'></i>", "class='btn btn-link pull-left btn-mini btn-plus'");
?>
      <?php 
echo html::a('javascript:;', "<i class='icon-remove'></i>", "class='btn btn-link pull-left btn-mini btn-remove'");
?>
    </div>
    <?php 
echo html::hidden('mode[]', 'new');
Exemplo n.º 12
0
    <small class='text-muted'> <?php 
echo html::icon($lang->icons['copy']);
?>
</small>
  </div>
</div>

<form class='form-condensed mw-500px pdb-20' method='post' target='hiddenwin'>
  <table align='center' class='table table-form'> 
    <tr>
      <th class='w-100px'><?php 
echo $lang->group->name;
?>
</th>
      <td><?php 
echo html::input('name', $group->name, "class='form-control'");
?>
</td>
    </tr>
    <tr>
      <th><?php 
echo $lang->group->desc;
?>
</th>
      <td><?php 
echo html::textarea('desc', $group->desc, "rows='5' class='form-control'");
?>
</td>
    </tr>
    <tr>
      <th><?php 
Exemplo n.º 13
0
      <td class='text-left' style='overflow:visible'><?php 
echo html::select("plan[%s]", $plans, $planID, "class='form-control'");
?>
</td>
      <td><?php 
echo html::input("title[%s]", $storyTitle, "class='form-control'");
?>
</td>
      <td>
        <?php 
echo html::textarea("spec[%s]", $spec, "rows='1' class='form-control'");
?>
      </td>
      <td><?php 
echo html::select("pri[%s]", (array) $lang->story->priList, $pri, 'class=form-control');
?>
</td>
      <td><?php 
echo html::input("estimate[%s]", $estimate, "class='form-control'");
?>
</td>
      <td><?php 
echo html::select("needReview[%s]", $lang->story->reviewList, 0, "class='form-control'");
?>
</td>
    </tr>
  </tbody>
</table>
<?php 
include '../../common/view/pastetext.html.php';
include '../../common/view/footer.html.php';
Exemplo n.º 14
0
            <div class='row'>
              <?php 
$placeholder = $this->app->getClientLang() == 'en' ? "placeholder='{$lang->site->policeTip}'" : '';
?>
              <div class='col-sm-4'><?php 
echo html::input('policeSN', isset($this->config->site->policeSN) ? $this->config->site->policeSN : '', "class='form-control col-xs-2' {$placeholder}");
?>
</div>
              <div class='col-sm-8'>
                <div class='input-group'>
                  <span class="input-group-addon"><?php 
echo $lang->site->policeLink;
?>
</span>
                  <?php 
echo html::input('policeLink', isset($this->config->site->policeLink) ? $this->config->site->policeLink : 'http://www.miitbeian.gov.cn', "class='form-control'");
?>
                </div>
              </div>
            </div>
          </td>
        </tr>
        <tr>
          <th></th>
          <td colspan='2'><?php 
echo html::submitButton();
?>
</td>
        </tr>
      </table>
    </form>
Exemplo n.º 15
0
        <?php 
        echo html::input("duplicateStoryIDList[{$story->id}]", '', "class=w-30px placeholder='{$lang->idAB}'");
        ?>
        </div>

        <div class='f-left' id='<?php 
        echo 'childStoryBox' . $story->id;
        ?>
' <?php 
        if ($story->closedReason != 'subdivided') {
            echo "style='display:none'";
        }
        ?>
>
        <?php 
        echo html::input("childStoriesIDList[{$story->id}]", '', "class=w-30px placeholder='{$lang->idAB}'");
        ?>
        </div>
      </td>
      <?php 
    } else {
        ?>
  
      <td class='f-left'><?php 
        echo html::select("closedReasons[{$story->id}]", $lang->story->reasonList, $story->closedReason, 'class="w-60px" disabled="disabled"');
        ?>
</td>
      <?php 
    }
    ?>
Exemplo n.º 16
0
 */
include '../../common/view/header.html.php';
?>
<form method='post' target='hiddenwin' id='dataform'>
  <table align='center' class='table-4'> 
    <caption><?php 
echo $lang->group->edit;
?>
</caption>
    <tr>
      <th class='rowhead'><?php 
echo $lang->group->name;
?>
</th>
      <td><?php 
echo html::input('name', $group->name, "class='text-1'");
?>
</td>
    </tr>  
    <tr>
      <th class='rowhead'><?php 
echo $lang->group->desc;
?>
</th>
      <td><?php 
echo html::textarea('desc', $group->desc, "rows='5' class='area-1'");
?>
</td>
    </tr>  
    <tr><td colspan='2' class='a-center'><?php 
echo html::submitButton();
Exemplo n.º 17
0
commonModel::printLink('file', 'browse', "objectType=category&objectID={$category->id}&isImage=1", '上传图片', "data-toggle='modal'");
?>
</div>
        </div>
      </div>
      <div class='categoryInfo'>
        <?php 
if ($category->type == 'forum') {
    ?>
        <div class='form-group'>
          <label class='col-md-2 control-label'><?php 
    echo $lang->category->moderators;
    ?>
</label>
          <div class='col-md-9'><?php 
    echo html::input('moderators', $category->moderators, "class='form-control' placeholder='{$lang->board->placeholder->moderators}'");
    ?>
</div>
        </div>  
        <div class='form-group'>
          <label class='col-md-2 control-label'><?php 
    echo $lang->category->readonly;
    ?>
</label>
          <div class='col-md-4'><?php 
    echo html::radio('readonly', $lang->category->readonlyList, $category->readonly);
    ?>
</div>
        </div>  
        <?php 
}
Exemplo n.º 18
0
echo html::select('pri', $lang->todo->priList, '', "class='form-control'");
?>
</td>
      </tr>  
      <tr>
        <th><?php 
echo $lang->todo->name;
?>
</th>
        <td colspan='2'>
          <div id='nameBox' class='hidden'><?php 
echo html::input('name', '', 'class=form-control');
?>
</div>
          <div class='nameBox'><?php 
echo html::input('name', '', 'class=form-control');
?>
</div>
          </td>
      </tr>  
      <tr>
        <th><?php 
echo $lang->todo->desc;
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('desc', '', "rows='8' class='form-control'");
?>
</td>
      </tr>  
      <tr>
Exemplo n.º 19
0
echo $this->fetch('file', 'buildForm');
?>
          </div>
        </div>
        <div class='form-group hiding' id='captchaBox'></div>
      </div>
      <?php 
if ($this->app->user->admin == 'super') {
    ?>
      <div class='form-group link'>
        <label class='col-md-1 col-sm-2 control-label'><?php 
    echo $lang->thread->link;
    ?>
</label>
        <div class='col-md-11 col-sm-10 required'><?php 
    echo html::input('link', $thread->link, "class='form-control' placeholder='{$lang->thread->placeholder->link}'");
    ?>
</div>
      </div>
      <?php 
}
?>
      <div class='form-group'>
        <label class='col-md-1 col-sm-2'></label>
        <div class='col-md-11 col-sm-10'><?php 
echo html::submitButton() . html::backButton();
?>
</div>
      </div>
    </form>
  </div>
Exemplo n.º 20
0
?>
</th>
        <td colspan='2'><?php 
echo html::textarea('content', htmlspecialchars($article->content), "rows='10' class='form-control'");
?>
</td>
      </tr>
      <tr>
        <th><?php 
echo $lang->article->addedDate;
?>
</th>
        <td>
          <div class='input-append date'>
            <?php 
echo html::input('addedDate', formatTime($article->addedDate), "class='form-control'");
?>
            <span class='add-on'><button class="btn btn-default" type="button"><i class="icon-calendar"></i></button></span>
          </div>
        </td>
        <td><span class='help-inline'><?php 
echo $lang->article->placeholder->addedDate;
?>
</span></td>
      </tr>
      <tr>
        <th><?php 
echo $lang->article->status;
?>
</th>
        <td><?php 
Exemplo n.º 21
0
        echo html::input("params[custom][{$theme}][backgroundColor]", isset($block->content->custom->{$theme}->backgroundColor) ? $block->content->custom->{$theme}->backgroundColor : '', "class='form-control input-color text-latin' placeholder='" . $lang->colorTip . "'");
        ?>
                    </div>
                  </div>
                </td>
              </tr>
              <?php 
    }
    ?>
              <tr>
                <th><?php 
    echo $lang->block->class;
    ?>
</th>
                <td><?php 
    echo html::input('params[class]', isset($block->content->class) ? $block->content->class : '', "class='form-control' placeholder='{$lang->block->placeholder->class}'");
    ?>
</td>
              </tr>
            </table>
          </div>
          <?php 
}
?>
          <div class='tab-pane theme-control-tab-pane' id='cssTab'>
            <?php 
echo html::textarea('css', isset($block->content->custom->{$theme}->css) && !empty($block->content->custom->{$theme}->css) ? $block->content->custom->{$theme}->css : "#blockID\n{\n  /*.panel-heading {}*/\n  /*.panel-body    {}*/\n}", "rows=20 class='form-control codeeditor' data-mode='css' data-height='350'");
?>
            <p class='text-info text-tip'><?php 
echo $lang->block->placeholder->customStyleTip;
?>
Exemplo n.º 22
0
        </div>
      </td>
      <td><?php 
echo html::input("name[%s]", '', 'class=form-control');
?>
</td>
      <td><?php 
echo html::select("type[%s]", $lang->task->typeList, $type, 'class=form-control');
?>
</td>
      <td style='overflow:visible'><?php 
echo html::select("assignedTo[%s]", $members, $member, "class='form-control'");
?>
</td>
      <td><?php 
echo html::input("estimate[%s]", '', "class='form-control text-center' autocomplete='off'");
?>
</td>
      <td><?php 
echo html::textarea("desc[%s]", '', "rows='1' class='form-control autosize'");
?>
</td>
      <td><?php 
echo html::select("pri[%s]", (array) $lang->task->priList, $pri, 'class=form-control');
?>
</td>
    </tr>
  </tbody>
</table>
<?php 
js::set('mainField', 'name');
Exemplo n.º 23
0
                <?php 
$maxOrder = 0;
if ($newModule and !$productID) {
    foreach ($products as $id => $product) {
        echo '<span>' . html::input("products[id{$id}]", $product, 'class=form-control disabled="true"') . '</span>';
    }
}
foreach ($sons as $sonModule) {
    if ($sonModule->order > $maxOrder) {
        $maxOrder = $sonModule->order;
    }
    $disabled = $sonModule->type == 'task' ? '' : 'disabled="true"';
    echo '<span>' . html::input("modules[id{$sonModule->id}]", $sonModule->name, 'class=form-control ' . $disabled) . '</span>';
}
for ($i = 0; $i < TREE::NEW_CHILD_COUNT; $i++) {
    echo '<span>' . html::input("modules[]", '', 'class=form-control') . '</span>';
}
?>
              </td>
            </tr>
            <tr>
              <td></td>
              <td colspan='2'>
                <?php 
echo html::submitButton() . html::backButton();
echo html::hidden('parentModuleID', $currentModuleID);
echo html::hidden('maxOrder', $maxOrder);
?>
      
                <input type='hidden' value='<?php 
echo $currentModuleID;
Exemplo n.º 24
0
echo $lang->company->beginDate;
?>
</span>
            <?php 
echo html::input('begin', $begin, 'class="form-control form-date"');
?>
          </div>
        </div>
        <div class='form-group'>
          <div class='input-group'>
            <span class='input-group-addon'><?php 
echo $lang->company->endDate;
?>
</span>
            <?php 
echo html::input('end', $end, 'class="form-control form-date"');
?>
          </div>
        </div>
        <div class='form-group'><?php 
echo html::submitButton($lang->company->effort->view);
?>
</div>
      </div>
    </div>
  </form>
</div>
<div class="main">
  <div id='showdata' data-url='<?php 
echo $this->createLink('company', 'todo', "dept={$parent}&begin=" . strtotime($begin) . "&end=" . strtotime($end) . "&iframe=yes");
?>
Exemplo n.º 25
0
?>
'>
  <div class='panel-heading'><strong><i class='icon-building'></i> <?php 
echo $lang->company->setBasic;
?>
</strong></div>
  <div class='panel-body'>
    <form method='post' id='ajaxForm' class='ve-form'>
      <table class='table table-form'>
        <tr data-row='name'>
          <th class='w-100px'><?php 
echo $lang->company->name;
?>
</th>
          <td class='w-p50'><?php 
echo html::input('name', isset($this->config->company->name) ? $this->config->company->name : '', "class='form-control'");
?>
</td><td></td>
        </tr>
        <tr data-row='desc'>
          <th><?php 
echo $lang->company->desc;
?>
</th>
          <td colspan='2'><?php 
echo html::textarea('desc', isset($this->config->company->desc) ? htmlspecialchars($this->config->company->desc) : '', "class='form-control' rows='5'");
?>
</td>
        </tr>
        <tr data-row='content'>
          <th><?php 
Exemplo n.º 26
0
?>
</th>
          <td>
            <?php 
echo html::input('key', zget($setting, 'key', ' '), "class='form-control'");
?>
          </td>
        </tr>
        <tr>
          <th><?php 
echo $lang->site->yangcong->auth;
?>
</th>
          <td>
            <?php 
echo html::input('auth', zget($setting, 'auth', ' '), "class='form-control'");
?>
          </td>
        </tr>
        <tr>
         <th></th> <td><?php 
echo html::submitButton();
?>
</td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php 
include '../../common/view/footer.admin.html.php';
Exemplo n.º 27
0
?>
        <?php 
echo html::hidden('orderBy', $orderBy);
?>
        <?php 
echo html::hidden('recTotal', isset($this->get->recTotal) ? $this->get->recTotal : 0);
?>
        <?php 
echo html::hidden('recPerPage', isset($this->get->recPerPage) ? $this->get->recPerPage : 10);
?>
        <?php 
echo html::hidden('pageID', isset($this->get->pageID) ? $this->get->pageID : 1);
?>
        <div class="input-group">
          <?php 
echo html::input('searchWord', $this->get->searchWord, "class='form-control search-query'");
?>
          <span class="input-group-btn"><?php 
echo html::submitButton($lang->search->common, "btn btn-primary");
?>
</span>
        </div>
      </form>
    </div>
  </div>
  <table class='table table-hover table-striped tablesorter' id='threadList'>
    <?php 
if ($threads) {
    ?>
    <thead>
      <tr class='text-center'>
Exemplo n.º 28
0
?>
</th>
      <td><?php 
echo html::select('pri', $lang->todo->priList, $todo->pri, 'class=select-3');
?>
</td>
    </tr>  
    <tr>
      <th class='rowhead'><?php 
echo $lang->todo->name;
?>
</th>
      <td><div id='nameBox'>
        <?php 
$readType = $todo->type != 'custom' ? 'readonly' : '';
echo html::input('name', $todo->name, "{$readType} class=text-1");
?>
        </div>
      </td>
    </tr>  
    <tr>
      <th class='rowhead'><?php 
echo $lang->todo->desc;
?>
</th>
      <td><?php 
echo html::textarea('desc', htmlspecialchars($todo->desc), "rows=8 class=area-1");
?>
</td>
    </tr>  
    <tr>
Exemplo n.º 29
0
  <th><?php 
echo $lang->block->categories;
?>
</th>
  <td><?php 
echo html::select('params[category][]', $categories, isset($block->content->category) ? $block->content->category : '', "class='text-4 form-control chosen' multiple='multiple'");
?>
</td>
</tr>
<tr>
  <th><?php 
echo $lang->block->limit;
?>
</th>
  <td><?php 
echo html::input('params[limit]', isset($block->content->limit) ? $block->content->limit : '', "class='text-4 form-control'");
?>
</td>
</tr>
<tr>
  <th><?php 
echo $lang->block->showCategory;
?>
</th>
  <td>
    <div class='input-group'>
      <span class='input-group-addon'>
        <input type='checkbox' name='params[showCategory]' <?php 
if (isset($block->content->showCategory) && $block->content->showCategory) {
    echo 'checked';
}
Exemplo n.º 30
0
    <tr class='text-center'>
      <td>%s</td>
      <td class='text-left' style='overflow:visible'><?php 
echo html::select("modules[%s]", $moduleOptionMenu, $moduleID, "class='form-control'");
?>
</td>
      <td class='text-left' style='overflow:visible'><?php 
echo html::select("projects[%s]", $projects, $projectID, "class='form-control' onchange='loadProjectBuilds({$productID}, this.value, \"%s\")'");
?>
</td>
      <td class='text-left' style='overflow:visible' id='buildBox%s'><?php 
echo html::select("openedBuilds[%s][]", $builds, '', "class='form-control' multiple");
?>
</td>
      <td><?php 
echo html::input("titles[%s]", '', 'class=form-control');
?>
</td>
      <td>
        <?php 
echo html::textarea("stepses[%s]", '', "rows='1' class='form-control autosize'");
?>
      </td>
      <td><?php 
echo html::select("types[%s]", $lang->bug->typeList, '', "class='form-control'");
?>
</td>
      <td><?php 
echo html::select("severities[%s]", $lang->bug->severityList, '', "class='form-control'");
?>
</td>