/** * see html::wysiwyg(); */ public static function wysiwyg($options = []) { // tinymce library library::add('tinymce'); $options['class'] = $options['class'] ?? ''; $options['class'] .= ' wysiwyg'; layout::onload("tinymce.init({selector: 'textarea.wysiwyg', height: 500, plugins: ['advlist autolink lists link image charmap print preview hr anchor pagebreak','searchreplace wordcount visualblocks visualchars code fullscreen','insertdatetime media nonbreaking save table contextmenu directionality','emoticons template paste textcolor colorpicker textpattern imagetools'],toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',toolbar2: 'print preview media | forecolor backcolor emoticons'});"); return html::textarea($options); }
<th><?php echo $lang->site->meta; ?> </th> <td colspan='2'><?php echo html::textarea('meta', htmlspecialchars($this->config->site->meta), "placeholder='{$lang->site->metaHolder}' class='form-control' rows=3"); ?> </td> </tr> <tr> <th><?php echo $lang->site->desc; ?> </th> <td colspan='2'><?php echo html::textarea('desc', htmlspecialchars($this->config->site->desc), "class='form-control' rows='3'"); ?> </td> </tr> <tr class='icpSN'> <th><?php echo $lang->site->icpSN; ?> </th> <td colspan='2'> <div class='row'> <?php $placeholder = $this->app->getClientLang() == 'en' ? "placeholder='{$lang->site->icpTip}'" : ''; ?> <div class='col-sm-4'><?php echo html::input('icpSN', isset($this->config->site->icpSN) ? $this->config->site->icpSN : '', "class='form-control col-xs-2' {$placeholder}");
<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 echo $lang->company->content; ?> </th> <td colspan='2'><?php echo html::textarea('content', isset($this->config->company->content) ? htmlspecialchars($this->config->company->content) : '', "class='form-control' rows='15'"); ?> </td> </tr> <tr> <th></th> <td colspan='2'> <?php echo html::submitButton(); ?> </td> </tr> </table> </form> </div> </div>
echo $lang->testcase->stepExpect; ?> </th> <th class='w-100px'><?php echo $lang->actions; ?> </th> </tr> </thead> <?php foreach ($steps as $stepID => $step) { $stepID += 1; echo "<tr id='row{$stepID}' class='text-center'>"; echo "<td class='stepID strong'>{$stepID}</td>"; echo '<td class="w-p50">' . html::textarea('steps[]', $step->desc, "rows='3' class='form-control'") . '</td>'; echo '<td>' . html::textarea('expects[]', $step->expect, "rows='3' class='form-control'") . '</td>'; echo "<td class='text-left w-100px'><div class='btn-group-vertical'>"; echo "<input type='button' tabindex='-1' class='addbutton btn btn-xs' onclick='preInsert({$stepID})' value='{$lang->testcase->insertBefore}' />"; 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; ?>
<div class='modal-content'> <div class='modal-header'> <button type='button' class='close' data-dismiss='modal'><span aria-hidden='true'>×</span></button> <h5 class='modal-title'><i class='icon-reply'></i> <?php echo $lang->reply->common; ?> </h5> </div> <div class='modal-body'> <form method='post' enctype='multipart/form-data' id='replyForm' action='<?php echo $this->createLink('reply', 'post', "thread={$thread->id}"); ?> '> <div class='form-group' id='reply'> <?php echo html::textarea('content', '', "rows='6' class='form-control' placeholder='{$lang->reply->content}'"); ?> </div> <div class='form-group clearfix captcha-box hide'></div> <div class='form-group'><?php echo html::submitButton('', 'btn primary block'); ?> </div> <?php echo html::hidden('recTotal', $pager->recTotal); echo html::hidden('recPerPage', $pager->recPerPage); echo html::hidden('pageID', $pager->pageTotal); ?> </form> </div> </div>
<?php echo html::input('title', $thread->title, "class='form-control'"); ?> <?php } ?> </div> </div> <div class='threadInfo'> <div class='form-group'> <label class='col-md-1 col-sm-2 control-label'><?php echo $lang->thread->content; ?> </label> <div class='col-md-11 col-sm-10'><?php echo html::textarea('content', htmlspecialchars($thread->content), "rows='15' class='form-control'"); ?> </div> </div> <div class='form-group'> <label class='col-md-1 col-sm-2 control-label'><?php echo $lang->thread->file; ?> </label> <div class='col-md-11 col-sm-10'> <?php $this->thread->printFiles($thread, $canManage = true); echo $this->fetch('file', 'buildForm'); ?> </div> </div>
<label class='col-md-2 control-label'><?php echo $lang->category->keywords; ?> </label> <div class='col-md-9'><?php echo html::input('keywords', $category->keywords, "class='form-control'"); ?> </div> </div> <div class='form-group'> <label class='col-md-2 control-label'><?php echo $lang->category->desc; ?> </label> <div class='col-md-9'><?php echo html::textarea('desc', htmlspecialchars($category->desc), "class='form-control' rows=3'"); ?> </div> </div> <div class='form-group'> <label class='col-md-2 control-label'>图片</label> <div class='col-md-9' style="padding-top:6px;"><?php 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') { ?>
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(); ?> </td></tr> </table> </form> <?php include '../../common/view/footer.html.php';
</th> <td colspan='3'><?php echo html::textarea('spec', $spec, "rows='9' class='form-control'"); ?> <div class='help-block'><?php echo $lang->story->specTemplate; ?> </div></td> </tr> <tr> <th><?php echo $lang->story->verify; ?> </th> <td colspan='3'><?php echo html::textarea('verify', $verify, "rows='6' class='form-control'"); ?> </td> </tr> <tr> <th><nobr><?php echo $lang->story->mailto; ?> </nobr></th> <td colspan='3'> <div class='input-group'> <?php echo html::select('mailto[]', $users, str_replace(' ', '', $mailto), "multiple"); if ($contactLists) { echo html::select('', $contactLists, '', "class='form-control' style='width: 150px' onchange=\"setMailto('mailto', this.value)\""); }
</td> </tr> <tr> <th></th> <td colspan='2'><span style='color:#03b8cf;font-weight:bold;'><?php echo $lang->admin->safe->noticeStrong; ?> </span></td> </tr> <tr> <th><?php echo $lang->admin->safe->weak; ?> </th> <td colspan='2'><?php echo html::textarea('weak', $config->safe->weak, "class='form-control' rows='4'"); ?> </td> </tr> <tr> <th></th> <td colspan='2'><?php echo html::submitButton(); ?> </td> </tr> </table> </form> </div> <?php include '../../common/view/footer.html.php';
<th><?php echo $lang->release->date; ?> </th> <td><?php echo html::input('date', $release->date, "class='form-control form-date'"); ?> </td><td></td> </tr> <tr> <th><?php echo $lang->release->desc; ?> </th> <td colspan='2'><?php echo html::textarea('desc', htmlspecialchars($release->desc), "rows=10 class='form-control'"); ?> </td> </tr> <tr> <th><?php echo $lang->files; ?> </th> <td colspan='2'><?php echo $this->fetch('file', 'buildform', array('fileCount' => 1)); ?> </td> </tr> <tr> <td></td>
include '../../common/view/header.admin.html.php'; include '../../common/view/codeeditor.html.php'; ?> <div class='panel'> <div class='panel-heading'> <strong><i class='icon-html5'></i> <?php echo $lang->ui->setBaseStyle; ?> </strong> </div> <div class='panel-body'> <form method='post' id='ajaxForm' class='form-inline'> <table class='table table-form'> <tr> <td><?php echo html::textarea('content', isset($content) ? $content : '', "rows=20 class='form-control codeeditor' data-mode='css'"); ?> </td> </tr> <tr> <td> <div class='form-action'> <?php echo html::submitButton(); ?> <strong class="text-info"> <?php echo $this->lang->ui->noStyleTag; ?> </strong> </div> </td>
</div> <div class='col-sm-5'> <label class='checkbox'><input type='checkbox' name='receiveEmail' value='1' checked /> <?php echo $lang->comment->receiveEmail; ?> </label> </div> </div> <div class='form-group'> <label for='content' class='col-sm-1 control-label'><?php echo $lang->message->content; ?> </label> <div class='col-sm-11 required'> <?php echo html::textarea('content', '', "class='form-control' rows='3'"); echo html::hidden('objectType', 'message'); echo html::hidden('objectID', 0); ?> </div> </div> <div class='form-group hiding' id='captchaBox'></div> <div class='form-group'> <div class='col-sm-1'></div> <div class='col-sm-11'><label class='checkbox'><input type='checkbox' name='secret' value='1' /><?php echo $lang->message->secret; ?> </label></div> </div> <div class='form-group'> <div class='col-sm-1'></div>
<th><?php echo $lang->doc->info; ?> </th> <td colspan='2'><?php echo html::textarea('info', htmlspecialchars($doc->info), "class='form-control' rows=3"); ?> </td> </tr> <tr> <th><?php echo $lang->doc->remark; ?> </th> <td colspan='2'><?php echo html::textarea('remark', htmlspecialchars($doc->remark), "class='form-control' rows=3"); ?> </td> </tr> <tr> <th><?php echo $lang->doc->add_user; ?> </th> <td colspan='2'><?php echo html::input('add_user', $doc->add_user, "class='form-control'"); ?> </td> </tr> <tr> <th><?php
echo $lang->task->finishedDate; ?> </td> <td><?php echo html::input('finishedDate', $date, "class='text-3'"); ?> </td> </tr> <tr> <td class='rowhead'><?php echo $lang->comment; ?> </td> <td><?php echo html::textarea('comment', '', "rows='6' class='w-p98'"); ?> </td> </tr> <tr> <td colspan='2' class='a-center'><?php echo html::submitButton(); ?> </td> </tr> </table> <?php include '../../common/view/action.html.php'; ?> </form> <?php
</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> <th class='rowhead'><?php echo $lang->todo->status; ?> </th> <td><?php echo html::select('status', $lang->todo->statusList, $todo->status, 'class=select-3'); ?> </td> </tr> <tr> <th class='rowhead'><?php
</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> <td><?php echo html::select("oses[%s]", $lang->bug->osList, '', "class='form-control'"); ?> </td> <td><?php
<th class='rowhead'><?php echo $lang->sqlreview->title; ?> </th> <td><?php echo html::input('title', $title, "class='text-1'"); ?> </td> </tr> <tr> <th class='rowhead'><?php echo $lang->sqlreview->content; ?> </th> <td><?php echo html::textarea('content', $content, "rows='9' class='text-1'"); ?> <br /></td> </tr> <tr> <th class='rowhead'><?php echo $lang->sqlreview->host; ?> </th> <td> <?php echo html::input('host_alpha', $host_alpha, "class='text-3'"); ?> <?php echo html::input('host_beta', $host_beta, "class='text-3'"); ?>
echo $actionLinks; ?> </div> <div id='comment' class='hidden'> <fieldset> <legend><?php echo $lang->comment; ?> </legend> <form method='post' action='<?php echo inlink('edit', "caseID={$case->id}&comment=true"); ?> '> <table align='center' class='table-1'> <tr><td><?php echo html::textarea('comment', '', "rows='5' class='w-p100'"); ?> </td></tr> <tr><td><?php echo html::submitButton() . html::resetButton(); ?> </td></tr> </table> </form> </fieldset> </div> </td> <td class='divider'></td> <td class='side'> <fieldset> <legend><?php
</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 } ?> <td><?php echo html::textarea("comments[{$story->id}]", '', "rows='2' class='area-1'"); ?> </td> </tr> <?php } ?> <?php if (isset($suhosinInfo)) { ?> <tr><td colspan='5'><div class='f-left blue'><?php echo $suhosinInfo; ?> </div></td></tr> <?php }
<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 echo $lang->group->option; ?> </th> <td><?php echo html::checkbox('options', $lang->group->copyOptions); ?> </td> </tr> <tr><td colspan='2' class='text-center'><?php echo html::submitButton();
<th><?php echo $lang->site->desc; ?> </th> <td colspan='2'><?php echo html::textarea('desc', htmlspecialchars($this->config->site->desc), "class='form-control' rows='3'"); ?> </td> </tr> <tr> <th><?php echo $lang->site->tongji; ?> </th> <td colspan='2'><?php echo html::textarea('tongji', htmlspecialchars($this->config->site->tongji), " class='form-control' rows=3"); ?> </td> </tr> <tr class='icpSN'> <th><?php echo $lang->site->icpSN; ?> </th> <td colspan='2'> <div class='row'> <?php $placeholder = $this->app->getClientLang() == 'en' ? "placeholder='{$lang->site->icpTip}'" : ''; ?> <div class='col-sm-4'><?php echo html::input('icpSN', isset($this->config->site->icpSN) ? $this->config->site->icpSN : '', "class='form-control col-xs-2' {$placeholder}");
</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; ?> </p> </div> <div class='tab-pane theme-control-tab-pane' id='jsTab'> <?php echo html::textarea('js', isset($block->content->custom->{$theme}->js) ? $block->content->custom->{$theme}->js : '', "rows=20 class='form-control codeeditor' data-mode='javascript' data-height='350'"); ?> <?php $device = helper::getDevice(); ?> <?php if ($device == 'mobile') { ?> <p class='text-info text-tip'><?php echo $lang->block->placeholder->mobileCustomScriptTip; ?> </p><?php } ?> <?php if ($device == 'desktop') {
<td>%s</td> <td class='text-left' style='overflow:visible'><?php echo html::select("module[%s]", $moduleOptionMenu, $moduleID, "class='form-control'"); ?> </td> <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>
?> </li> <?php } ?> </ol> </div> </div> </div> <iframe name="actionframe" style="display: none"></iframe> <footer> <div class="foot_ctr"> <form id="form1" method='post' target="actionframe" style="height: 100%;" action='<?php echo inlink('commentStory', "storyId={$story->id}"); ?> '> <table style="height: 100%; width: 100%;"> <tr> <td><?php echo html::textarea('comment', '', "rows='3' style='width:100%'"); ?> </td> <td width="50"><input type="submit" id="submit" value="备注" /></td> <td width="50"><input type="button" value="评审" onclick="$.ui.loadContent('storycontent')" /></td> </tr> </table> </form> </div> </footer> </div>
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> <th><?php echo $lang->todo->status; ?> </th> <td><?php echo html::select('status', $lang->todo->statusList, '', "class='form-control'"); ?> </td> </tr> <tr> <th><?php
?> </th> <td><?php echo nl2br($step->desc); ?> </td> <td><?php echo nl2br($step->expect); ?> </td> <td class='text-center'><?php echo html::select("steps[{$step->id}]", $lang->testcase->resultList, $defaultResult, "class='form-control'"); ?> </td> <td><?php echo html::textarea("reals[{$step->id}]", '', "rows=2 class='form-control'"); ?> </td> </tr> <?php } ?> <tr class='text-center'> <td colspan='5'> <?php if ($preCase) { echo html::a(inlink('runCase', "runID={$preCase['runID']}&caseID={$preCase['caseID']}&version={$preCase['version']}"), $lang->testtask->pre, '', "id='pre' class='btn'"); } if (empty($run->case->steps)) { echo html::submitButton($lang->testtask->pass, "onclick=\$('#result').val('pass')", 'btn-success'); echo html::submitButton($lang->testtask->fail, "onclick=\$('#result').val('fail')", 'btn-danger');
* @link http://www.ranzhico.com */ include '../../../sys/common/view/header.modal.html.php'; include '../../../sys/common/view/kindeditor.html.php'; ?> <form method='post' id='ajaxForm' action='<?php echo $this->createLink('project', 'finish', "projectID={$projectID}"); ?> '> <table class='table table-form'> <tr> <th><?php echo $lang->comment; ?> </th> <td><?php echo html::textarea('comment'); ?> </td> </tr> <tr> <th></th> <td><?php echo html::submitButton(); ?> </td> </tr> </table> </form> <?php include '../../../sys/common/view/footer.modal.html.php';
<th><?php echo $lang->product->desc; ?> </th> <td colspan='2'><?php echo html::textarea('desc', $product->desc, "rows='2' class='form-control'"); ?> </td> </tr> <tr> <th><?php echo $lang->product->content; ?> </th> <td colspan='2'><?php echo html::textarea('content', htmlspecialchars($product->content), "rows='10' class='form-control'"); ?> </td> </tr> <tr> <th rowspan='4'><?php echo $lang->product->attribute; ?> </th> <td colspan='2'> <div class="row form-group"> <div class='col-sm-6 col-md-6'> <div class='input-group'> <span class='input-group-addon'><?php echo $lang->product->brand; ?>
<th><?php echo $lang->article->keywords; ?> </th> <td colspan='2'><?php echo html::input('keywords', '', "class='form-control'"); ?> </td> </tr> <tr> <th><?php echo $lang->article->content; ?> </th> <td colspan='2'><?php echo html::textarea('content', '', "rows='20' class='form-control'"); ?> </td> </tr> <tr> <th></th> <td colspan='2'> <?php echo html::submitButton() . html::hidden('type', $type); ?> <?php if ($type != 'blog') { echo html::commonButton($lang->article->createDraft, "btn btn-default draft"); } ?>