コード例 #1
0
ファイル: browse.html.php プロジェクト: heeeello/zentaopms
echo html::a($this->createLink('tree', 'browse', "root={$root->id}&viewType={$viewType}"), $root->name);
echo $lang->arrow;
foreach ($parentModules as $module) {
    echo html::a($this->createLink('tree', 'browse', "root={$root->id}&viewType={$viewType}&moduleID={$module->id}"), $module->name);
    echo $lang->arrow;
}
?>
                </nobr>
              </td>
              <td id='moduleBox'> 
                <?php 
if ($viewType == 'story' and $allProduct) {
    echo "<table class='copy w-p100'><tr>";
    echo "<td class='w-260px'>" . html::select('allProduct', $allProduct, '', "class='form-control chosen' onchange=\"syncProductOrProject(this,'product')\"") . '</td>';
    echo "<td class='w-200px'>" . html::select('productModule', $productModules, '', "class='form-control chosen'") . '</td>';
    echo "<td class=''>" . html::commonButton($lang->tree->syncFromProduct, "id='copyModule' onclick='syncModule({$currentProduct}, \"story\")'") . '</td>';
    echo '</tr></table>';
}
$maxOrder = 0;
echo '<div id="sonModule">';
foreach ($sons as $sonModule) {
    if ($sonModule->order > $maxOrder) {
        $maxOrder = $sonModule->order;
    }
    $disabled = $sonModule->type == $viewType ? '' : 'disabled="true"';
    echo $hasBranch ? "<div class='input-group' style='margin-bottom:5px'>" : "<div style='margin-bottom:5px'>";
    echo html::input("modules[id{$sonModule->id}]", $sonModule->name, 'class="form-control"' . $disabled);
    if ($hasBranch) {
        echo '<span class="input-group-addon" style="padding:0px"></span>' . html::select("branch[id{$sonModule->id}]", $branches, $sonModule->branch, 'class="form-control" disabled');
    }
    echo '</div>';
コード例 #2
0
ファイル: create.html.php プロジェクト: leowh/colla
        </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");
}
?>
          </td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php 
include $app->getModuleRoot() . 'common/view/footer.html.php';
コード例 #3
0
ファイル: batchcreate.html.php プロジェクト: fanscky/HTPMS
</span>
    <strong><small class='text-muted'><?php 
echo html::icon($lang->icons['batchCreate']);
?>
</small> <?php 
echo $lang->bug->common . $lang->colon . $lang->bug->batchCreate;
?>
</strong>
    <div class='actions'>
      <?php 
if (common::hasPriv('file', 'uploadImages')) {
    echo html::a($this->createLink('file', 'uploadImages', 'module=bug&params=' . helper::safe64Encode("productID={$productID}&projectID={$projectID}&moduleID={$moduleID}")), $lang->uploadImages, '', "data-toggle='modal' data-type='iframe' class='btn' data-width='600px'");
}
?>
      <?php 
echo html::commonButton($lang->pasteText, "data-toggle='myModal'");
?>
    </div>
  </div>
</div>

<form class='form-condensed' class='form-condensed' method='post' target='hiddenwin'>
  <table class='table table-fixed table-form'>
    <thead>
      <tr>
        <th class='w-50px'>  <?php 
echo $lang->idAB;
?>
</th> 
        <th class='w-120px'> <?php 
echo $lang->bug->module;
コード例 #4
0
ファイル: uninstall.html.php プロジェクト: huokedu/zentao
 *
 * @copyright   Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chunsheng Wang <*****@*****.**>
 * @package     extension
 * @version     $Id$
 * @link        http://www.zentao.net
 */
include '../../common/view/header.lite.html.php';
?>
<table class='table-1'>
  <caption><?php 
echo $header->title;
?>
</caption>
  <tr>
    <td valign='middle'>
    <?php 
echo "<h3 class='a-center success'>{$header->title}</h3>";
if ($removeCommands) {
    echo "<p class='strong'>{$lang->extension->unremovedFiles}</p>";
    echo join($removeCommands, '<br />');
}
echo "<p class='a-center'>" . html::commonButton($lang->extension->viewAvailable, 'onclick=parent.location.href="' . inlink('browse', 'type=available') . '"') . '</p>';
?>
    </td>
  </tr>
</table>
</body>
</html>
コード例 #5
0
ファイル: linkcontact.html.php プロジェクト: leowh/colla
      </tr>
      <tr>
        <th><?php 
echo $lang->contact->qq;
?>
</th>
        <td><?php 
echo html::input('qq', '', "class='form-control'");
?>
</td>
      </tr>
    </tbody>
  </table>
  <div class='text-center'>
    <?php 
echo html::submitButton() . html::commonButton($lang->goback, 'reloadModal btn');
?>
    <div id='duplicateError' class='hide'></div>
  </div>
</form>
<div class='errorMessage hide'>
  <div class='alert alert-danger alert-dismissable'>
    <button aria-hidden='true' data-dismiss='alert' class='close' type='button'>×</button>
    <button type='submit' class='btn btn-default' id='continueSubmit'><?php 
echo $lang->continueSave;
?>
</button>
  </div>
</div>
<?php 
include '../../../sys/common/view/footer.modal.html.php';
コード例 #6
0
ファイル: task.html.php プロジェクト: nanata1115/zentaopms
        <?php 
if (count($tasks)) {
    ?>
        <div class='table-actions clearfix'>
        <?php 
    if ($canBatchEdit or $canBatchClose) {
        echo "<div class='btn-group'>" . html::selectButton() . '</div>';
    }
    echo "<div class='btn-group'>";
    if ($canBatchEdit) {
        $actionLink = $this->createLink('task', 'batchEdit', "projectID=0&orderBy={$orderBy}");
        echo html::commonButton($lang->edit, "onclick=\"setFormAction('{$actionLink}')\"");
    }
    if ($canBatchClose) {
        $actionLink = $this->createLink('task', 'batchClose');
        echo html::commonButton($lang->close, "onclick=\"setFormAction('{$actionLink}','hiddenwin')\"");
    }
    echo '</div>';
    ?>
        </div> 
        <?php 
}
?>
        <?php 
$pager->show();
?>
        </td>
      </tr>
    </tfoot>
  </table> 
</form>
コード例 #7
0
    common::printLink('task', 'create', $param, $lang->project->wbs);
    common::printLink('project', 'unlinkStory', $param, $lang->unlink, 'hiddenwin');
    ?>
        </td>
      </tr>
      <?php 
}
?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan='10'>
          <div class='f-left'>
          <?php 
if (count($stories)) {
    echo html::selectAll() . html::selectReverse();
    if (common::hasPriv('story', 'batchClose')) {
        $actionLink = $this->createLink('story', 'batchClose', "from=projectStory&productID=0&projectID={$project->id}&orderBy={$orderBy}");
        echo html::commonButton($lang->story->batchClose, "onclick=\"changeAction('projectStoryForm', 'batchClose', '{$actionLink}')\"");
    }
}
printf($lang->product->storySummary, count($stories), $totalEstimate, round(array_sum($estimateSum) * $pcwh), round(array_sum($consumedSum) * $pcwh));
?>
          </div>
        </td>
      </tr>
    </tfoot>
  </table>
</form>
<?php 
include '../../common/view/footer.html.php';
コード例 #8
0
ファイル: browse.html.php プロジェクト: nanata1115/zentaopms
?>
'>
            <?php 
if (!empty($bugs)) {
    ?>
            <div class='table-actions clearfix'>
              <div class='btn-group'>
              <?php 
    echo html::selectButton();
    ?>
              </div>
              <div class='btn-group dropup'>
                <?php 
    $actionLink = $this->createLink('bug', 'batchEdit', "productID={$productID}");
    $misc = common::hasPriv('bug', 'batchEdit') ? "onclick=\"setFormAction('{$actionLink}')\"" : "disabled='disabled'";
    echo html::commonButton($lang->edit, $misc);
    ?>
                <button type='button' class='btn dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>
                <ul class='dropdown-menu'>
                  <?php 
    $class = "class='disabled'";
    $actionLink = $this->createLink('bug', 'batchConfirm');
    $misc = common::hasPriv('bug', 'batchConfirm') ? "onclick=\"setFormAction('{$actionLink}','hiddenwin')\"" : $class;
    if ($misc) {
        echo "<li>" . html::a('javascript:;', $lang->bug->confirmBug, '', $misc) . "</li>";
    }
    $actionLink = $this->createLink('bug', 'batchClose');
    $misc = common::hasPriv('bug', 'batchClose') ? "onclick=\"setFormAction('{$actionLink}','hiddenwin')\"" : $class;
    if ($misc) {
        echo "<li>" . html::a('javascript:;', $lang->bug->close, '', $misc) . "</li>";
    }
コード例 #9
0
ファイル: waring.htm.php プロジェクト: mustafakarali/b2c-1
echo $title;
?>
</strong>
  </div>
</div>
<?php 
if ($error) {
    ?>
<div class='alert alert-danger'>
  <i class='icon-info-sign'></i>
  <div class='content'>
    <h3><?php 
    echo $lang->package->waringInstall;
    ?>
</h3>
    <p><?php 
    echo $error;
    ?>
</p>
    <p class='text-center'><?php 
    echo html::commonButton($lang->package->refreshPage, 'onclick=location.href=location.href');
    ?>
</p>
  </div>
</div>
<?php 
}
?>
</body>
</html>
コード例 #10
0
ファイル: buildform.html.php プロジェクト: heeeello/zentaopms
?>
      </table>
    </td>
    <td class='<?php 
echo $style == 'simple' ? 'w-60px' : 'w-150px';
?>
'> 
      <?php 
echo html::hidden('module', $module);
echo html::hidden('actionURL', $actionURL);
echo html::hidden('groupItems', $groupItems);
echo "<div class='btn-group'>";
echo html::submitButton($lang->search->common, '', 'btn-primary');
if ($style != 'simple') {
    echo html::commonButton($lang->search->reset, 'onclick=resetForm(this) class=btn');
    echo html::commonButton($lang->save, 'onclick=saveQuery() class=btn');
}
echo '</div>';
?>
    </td>
    <?php 
if ($style != 'simple') {
    ?>
    <td class='w-120px'>
      <div class='input-group'>
      <?php 
    echo html::select('queryID', $queries, $queryID, 'onchange=executeQuery(this.value) class=form-control');
    if (common::hasPriv('search', 'deleteQuery')) {
        echo "<span class='input-group-btn'>" . html::a('javascript:deleteQuery()', '<i class="icon-remove"></i>', '', 'class=btn') . '</span>';
    }
    ?>
コード例 #11
0
ファイル: edit.html.php プロジェクト: leowh/colla
    ?>
</td>
      </tr> 
      <?php 
}
?>
      <tr>
        <th class='w-80px'><?php 
echo $lang->attend->desc;
?>
</th>
        <td><?php 
echo $attend->desc;
?>
</td>
      </tr> 
      <?php 
if ($attend->reviewStatus != 'pass') {
    ?>
      <tr><th></th><td clospan='3'><?php 
    echo html::commonButton($lang->edit, "btn btn-primary edit");
    ?>
</td></tr>
      <?php 
}
?>
    </table>
  </form>
</div>
<?php 
include '../../../sys/common/view/footer.modal.html.php';
コード例 #12
0
ファイル: admin.html.php プロジェクト: hansen1416/eastsoft
      <?php 
}
?>
      <div class='col-lg-3 col-md-4 col-sm-6'>
        <?php 
commonModel::printLink('slide', 'createGroup', "", '<div class="slides-holder create-btn"><div class="empty-holder"><i class="icon-plus-sign icon icon-3x"></i> ' . $lang->slide->createGroup . '</div></div>', "class='card card-slide' data-toggle='modal'");
?>
      </div>
    </section>
  </div>
</div>
<form id="editGroupForm" class='edit-form' method='post' >
  <div class='editGroup input-group'>
    <?php 
echo html::input('groupName', $group->name, "class='form-control'");
?>
    <span class="input-group-btn fix-border"><?php 
echo html::submitButton('', 'submit btn btn-primary');
?>
 </span>
    <span class="input-group-btn"><?php 
echo html::commonButton($lang->cancel, 'btn-close-form btn');
?>
</span>
    <?php 
echo html::hidden('groupID', '', "class='groupID'");
?>
  </div>
</form>
<?php 
include '../../common/view/footer.admin.html.php';
コード例 #13
0
ファイル: kanban.html.php プロジェクト: xupnge1314/project
    echo $lang->task->statusList[$col];
    ?>
</th>
        <?php 
}
?>
        <th class='col-<?php 
echo $endCol;
?>
'><?php 
echo $lang->task->statusList[$endCol];
?>
          <div class='actions'>
          <?php 
if (common::hasPriv('project', 'printKanban')) {
    echo html::commonButton("<i class='icon-print'></i><span class='btn-text'> " . $lang->project->printKanban . '</span>', "id='printKanban' title='" . $lang->project->printKanban . "'", 'btn-sm btn-link');
}
?>
          </div>
        </th>
      </tr>
    </thead>
  </table>
  <?php 
$taskCols[] = $endCol;
?>
  <table class='boards-layout table active-disabled table-bordered' id='kanbanWrapper'>
    <thead>
      <tr>
        <?php 
if ($project->type != 'ops') {
コード例 #14
0
<script language='Javascript'>
setTemplateTitle = '<?php 
echo $lang->bug->setTemplateTitle;
?>
';
KindEditor.lang({'savetemplate' : '<?php 
echo $lang->bug->saveTemplate;
?>
'});
</script>
<?php 
foreach ($templates as $key => $template) {
    echo "<span id='tplBox{$template->id}'>";
    echo $lang->arrow . "<span id='tplTitleBox{$template->id}' onclick='setTemplate({$template->id})' style='text-decoration:underline; color:blue' class='hand'>{$template->title}</span>";
    echo html::commonButton('&nbsp;', "onclick=deleteTemplate({$template->id}) class='icon-delete'");
    echo "<span id='template{$template->id}' class='hidden'>{$template->content}</span>";
    echo '<br /></span>';
}
コード例 #15
0
ファイル: cases.html.php プロジェクト: XMGmen/zentao
    }
    if ($canBatchEdit) {
        $actionLink = $this->createLink('testcase', 'batchEdit', "productID={$productID}");
        echo html::commonButton($lang->edit, "onclick=\"setFormAction('{$actionLink}')\"");
    }
    if ($canBatchAssign) {
        $actionLink = inLink('batchAssign', "taskID={$task->id}");
        echo "<div class='input-group w-200px'>";
        echo html::select('assignedTo', $users, '', 'class="form-control chosen"');
        echo "<span class='input-group-addon'>";
        echo html::a("javascript:setFormAction(\"{$actionLink}\")", $lang->testtask->assign);
        echo '</span></div>';
    }
    if ($canBatchRun) {
        $actionLink = inLink('batchRUN', "productID={$productID}&orderBy=id_desc&from=testtask");
        echo html::commonButton($lang->testtask->runCase, "onclick=\"setFormAction('{$actionLink}')\"");
    }
    ?>

            </div>
            <?php 
}
?>
            <?php 
echo $pager->show();
?>
          </td>
        </tr>
      </tfoot>
    </table>
  </form>
コード例 #16
0
if (is_object($checkInfo['db'])) {
    $checkInfo['table'] === true ? printf($lang->convert->ok) : printf($lang->convert->fail);
}
?>
  </td>
</tr>
-->
<tr>
  <th><?php 
echo $lang->convert->checkPath;
?>
</th>
  <td><?php 
$checkInfo['path'] === true ? printf($lang->convert->ok) : printf($lang->convert->fail);
?>
</td>
</tr>
<tfoot>
  <tr>
    <td colspan='2' class='text-center'>
      <?php 
if ($result == 'pass') {
    echo html::hidden('source', $source) . html::hidden('version', $version) . html::submitButton($lang->convert->execute);
} else {
    echo html::commonButton($lang->goback, 'onclick=history.back();');
}
?>
    </td>
  </tr>
</tfoot>
コード例 #17
0
ファイル: install.html.php プロジェクト: XMGmen/zentao
    <?php 
    echo html::a($agreeLink, $lang->extension->agreeLicense, '', "class='btn btn-primary'");
    ?>
  </div>
</div>
<?php 
} else {
    ?>
<div class='panel panel-body'>
  <h5 class='text-center mgb-20'><?php 
    echo sprintf($lang->extension->installFinished, $installType);
    ?>
</h5>
  <div class='text-center'>
    <?php 
    echo html::commonButton($lang->extension->viewInstalled, 'onclick=parent.location.href="' . inlink('browse') . '" class="btn btn-success"');
    ?>
  </div>
  <hr>
  <div class='alert'>
    <?php 
    echo "<h5 class='success'>{$lang->extension->successDownloadedPackage}</h5>";
    echo "<h5 class='success'>{$lang->extension->successCopiedFiles}</h5>";
    echo '<ul>';
    foreach ($files as $fileName => $md5) {
        echo "<li>{$fileName}</li>";
    }
    echo '</ul>';
    echo "<h5 class='success'>{$lang->extension->successInstallDB}</h5>";
    ?>
  </div>
コード例 #18
0
ファイル: deactivate.html.php プロジェクト: iamazhi/zentaopms
</span>
  </div>
</div>
<div class='text-center with-padding'>
    <h3 class='mgb-20'><?php 
echo $title;
?>
</h3>
    <?php 
if ($removeCommands) {
    ?>
    <p><strong><?php 
    echo $lang->extension->unremovedFiles;
    ?>
</strong></p>
    <p><?php 
    echo join($removeCommands, '<br />');
    ?>
</p>
    <?php 
}
?>
    <hr>
    <p><?php 
echo html::commonButton($lang->extension->viewDeactivated, 'onclick=parent.location.href="' . inlink('browse', 'type=deactivated') . '"');
?>
</p>
</div>
</body>
</html>
コード例 #19
0
ファイル: blocksql.html.php プロジェクト: xupnge1314/project
if ($hasSqlVar) {
    ?>
      <div class='row' style='padding-top: 10px'><?php 
    include 'setvarvalues.html.php';
    ?>
</div>
      <?php 
}
?>
    </div>
    <div style='padding: 0 10px 10px;'>
      <?php 
echo html::submitButton($lang->crystal->query, "class='btn'");
?>
      <?php 
echo html::commonButton($lang->crystal->addVar, "class='btn addVar'");
?>
      <?php 
echo html::a(inlink('ajaxSetLang', "reportID={$reportID}"), $lang->crystal->addLang, '', "class='btn' data-toggle='modal' data-type='iframe'");
?>
      <?php 
if (common::hasPriv('report', 'saveReport')) {
    $save = $lang->save;
    echo "<div class='btn-group'>";
    if ($reportID) {
        echo html::a(inlink('saveReport', "reportID={$reportID}&step={$step}"), $lang->save, 'hiddenwin', "class='btn'");
        $save = $lang->crystal->saveAs;
    }
    echo html::a(inlink('saveReport', "reportID=0&step={$step}"), $save, '', "class='btn' data-type='iframe' data-toggle='modal'");
    echo '</div>';
}
コード例 #20
0
ファイル: storylist.html.php プロジェクト: laiello/zentaoms
}
?>
  </tbody>
  <tfoot>
  <tr>
    <td colspan='11' class='a-right'>
      <div class='f-left'>
      <?php 
if (count($stories)) {
    echo html::selectAll() . html::selectReverse();
    $canBatchEdit = common::hasPriv('story', 'batchEdit');
    $disabled = $canBatchEdit ? '' : "disabled='disabled'";
    $actionLink = $this->createLink('story', 'batchEdit', "productID={$productID}&projectID=0");
    echo "<div class='groupButton'>";
    echo html::commonButton($lang->edit, "onclick=\"changeAction('{$actionLink}')\" {$disabled}");
    echo html::commonButton($lang->more, "onclick=\"toggleSubMenu(this.id, 'top', 0)\" id='moreAction'");
    echo "</div>";
}
echo $summary;
?>
      </div>
      <?php 
$pager->show();
?>
    </td>
  </tr>
  </tfoot>
</table>

<div id='moreActionMenu' class='listMenu hidden'>
  <ul>
コード例 #21
0
ファイル: zerocase.html.php プロジェクト: fanscky/HTPMS
          <div class='table-actions clearfix'>
            <?php 
if (count($stories)) {
    ?>
            <div class='btn-group'><?php 
    echo html::selectButton();
    ?>
</div>
            <?php 
    $canBatchEdit = common::hasPriv('story', 'batchEdit');
    $disabled = $canBatchEdit ? '' : "disabled='disabled'";
    $actionLink = $this->createLink('story', 'batchEdit', "productID={$productID}&projectID=0");
    ?>
            <div class='btn-group dropup'>
              <?php 
    echo html::commonButton($lang->edit, "onclick=\"setFormAction('{$actionLink}')\" {$disabled}");
    ?>
              <button type='button' class='btn dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>
              <ul class='dropdown-menu'>
                <?php 
    $class = "class='disabled'";
    if (common::hasPriv('story', 'batchReview')) {
        echo "<li class='dropdown-submenu'>";
        echo html::a('javascript:;', $lang->story->review, '', "id='reviewItem'");
        echo "<ul class='dropdown-menu'>";
        unset($lang->story->reviewResultList['']);
        unset($lang->story->reviewResultList['revert']);
        foreach ($lang->story->reviewResultList as $key => $result) {
            $actionLink = $this->createLink('story', 'batchReview', "result={$key}");
            if ($key == 'reject') {
                echo "<li class='dropdown-submenu'>";
コード例 #22
0
ファイル: browse.html.php プロジェクト: leowh/colla
      </tbody>
    </table>
    <div class='table-footer'>
      <div class='pull-left batch-actions'>
        <?php 
$closeActionLink = $this->createLink('sys.todo', 'batchClose');
?>
        <div class='pull-left close-action'><?php 
echo html::selectButton() . html::commonButton($lang->close, 'btn btn-primary', "onclick=\"setFormAction('{$closeActionLink}')\"");
?>
</div>
        <?php 
if (commonModel::hasPriv('todo', 'import2Today')) {
    $actionLink = $this->createLink('todo', 'import2Today');
    echo "<div class='input-group import-action'>";
    echo "<div class='datepicker-wrapper datepicker-date'>" . html::input('date', date('Y-m-d'), "class='form-control form-date'") . '</div>';
    echo "<span class='input-group-btn'>";
    echo html::commonButton($lang->todo->import, 'btn btn-default', "onclick=\"setFormAction('{$actionLink}')\"");
    echo '</span>';
    echo '</div>';
}
?>
      </div>
      <?php 
$pager->show();
?>
    </div>
  </form>
</div>
<?php 
include $app->getModuleRoot() . 'common/view/footer.html.php';
コード例 #23
0
ファイル: slide.html.php プロジェクト: jnan77/chanzhieps
'><?php 
        echo $slide->title;
        ?>
</h2>
        <div><?php 
        echo $slide->summary;
        ?>
</div>
        <?php 
        foreach ($slide->label as $key => $label) {
            if (trim($label) != '') {
                if ($slide->buttonUrl[$key]) {
                    echo html::a($slide->buttonUrl[$key], $label, "class='btn btn-lg btn-{$slide->buttonClass[$key]}' target='{$slide->buttonTarget[$key]}'");
                }
                if (!$slide->buttonUrl[$key]) {
                    echo html::commonButton($label, "btn btn-lg btn-{$slide->buttonClass[$key]}");
                }
            }
        }
        ?>
      </div>
    </div>
    <?php 
    }
    ?>
  </div>
  <?php 
    if (count($slides) > 1) {
        ?>
  <a class='left carousel-control' href='#<?php 
        echo $slideId;
コード例 #24
0
ファイル: diff.html.php プロジェクト: xupnge1314/project
echo html::commonButton($lang->repo->viewDiffList['inline'], "id='inline'", $arrange == 'inline' ? 'active btn-sm' : 'btn-sm');
?>
        <?php 
echo html::commonButton($lang->repo->viewDiffList['appose'], "id='appose'", $arrange == 'appose' ? 'active btn-sm' : 'btn-sm');
?>
      </div>
      <div class='btn-toolbar'>
        <div class='btn-group'>
          <?php 
if (common::hasPriv('repo', 'download')) {
    echo html::a(inlink('download', "repoID={$repoID}&entry=" . $this->repo->encodePath($entry) . "&fromRevison={$oldRevision}&toRevision={$newRevision}&type=path"), $lang->repo->downloadDiff, 'hiddenwin', "class='btn btn-sm'");
}
?>
          <div class='btn-group'>
            <?php 
echo html::commonButton(zget($lang->repo->encodingList, $encoding, $lang->repo->encoding) . "<span class='caret'></span>", "data-toggle='dropdown'", 'btn dropdown-toggle btn-sm');
?>
            <ul class='dropdown-menu' role='menu'>
              <?php 
foreach ($lang->repo->encodingList as $key => $val) {
    ?>
              <li><?php 
    echo html::a('javascript:changeEncoding("' . $key . '")', $val);
    ?>
</li>
              <?php 
}
?>
            </ul>
          </div>
        </div>
コード例 #25
0
ファイル: execute.html.php プロジェクト: huokedu/zentao
<?php

include '../../common/view/header.lite.html.php';
$tmp = 'upgrade' . $result;
?>
<table align='center' class='table-5 f-14px'>
  <caption><?php 
echo $lang->info->{$tmp};
?>
</caption>
  <tr>
    <td>
    <?php 
if ($result == 'Fail') {
    echo nl2br(join('\\n', $errors));
} else {
    echo js::refresh('info');
    echo "<p class='a-center'>" . html::commonButton($lang->info->upgradeTohome, 'onclick=parent.location.href="' . inlink('browse') . '"') . '</p>';
}
?>
    </td>
  </tr>
</table>
<?php 
include '../../common/view/footer.lite.html.php';
コード例 #26
0
          </div>
        </td>
      </tr>
      <tr>
        <th><nobr><?php 
echo $lang->bug->lblAssignedTo;
?>
</nobr></th>
        <td>
          <div class='input-group'>
            <span id='assignedToBox'><?php 
echo html::select('assignedTo', $projectMembers, $assignedTo, "class='form-control chosen'");
?>
</span>
            <span class='input-group-btn'><?php 
echo html::commonButton($lang->bug->allUsers, "class='btn btn-default' onclick='loadAllUsers()'");
?>
</span>
          </div>
        </td>
      </tr>
      <tr>
        <th><?php 
echo $lang->bug->type;
?>
</th>
        <td>
          <div class='input-group'>
            <?php 
/* Remove the unused types. */
unset($lang->bug->typeList['designchange']);
コード例 #27
0
ファイル: view.html.php プロジェクト: jsyinwenjun/zentao
                    </td>
                  </tr>
                  <?php 
}
?>
                </tbody>
                <tfoot>
                <tr>
                  <td colspan='9'>
                    <div class='table-actions clearfix'>
                      <?php 
if (count($planStories) and ($canBatchUnlink or $canBatchChangePlan)) {
    echo "<div class='btn-group'>" . html::selectButton() . '</div>';
    echo "<div class='btn-group dropup'>";
    $actionLink = inlink('batchUnlinkStory', "planID={$plan->id}&orderBy={$orderBy}");
    echo html::commonButton($lang->productplan->unlinkStory, ($canBatchUnlink ? '' : 'disabled') . "onclick=\"setFormAction('{$actionLink}', '', this)\"");
    echo "<button type='button' class='btn dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>";
    echo "<ul class='dropdown-menu'>";
    echo "<li class='dropdown-submenu'>";
    echo html::a('javascript:;', $lang->story->planAB, '', "id='changePlan' " . ($canBatchChangePlan ? '' : "class='disabled'"));
    if ($canBatchChangePlan) {
        unset($plans['']);
        unset($plans[$plan->id]);
        $plans = array(0 => $lang->null) + $plans;
        $withSearch = count($plans) > 10;
        echo "<ul class='dropdown-menu" . ($withSearch ? ' with-search' : '') . "'>";
        foreach ($plans as $planID => $planName) {
            $actionLink = $this->createLink('story', 'batchChangePlan', "planID={$planID}&oldPlanID={$plan->id}");
            echo "<li class='option' data-key='{$planID}'>" . html::a('#', $planName, '', "onclick=\"setFormAction('{$actionLink}', 'hiddenwin', this)\"") . "</li>";
        }
        if ($withSearch) {
コード例 #28
0
  </div>
</div>
<div class='panel'>
  <div class='panel-heading'>
    <?php 
echo $lang->file->sourceList;
?>
    <span class='panel-actions'>
      <?php 
echo html::a('javascript:void(0)', "<i class='icon icon-th-large'></i>", "class='image-view selected'");
?>
      <?php 
echo html::a('javascript:void(0)', "<i class='icon icon-list'></i>", "class='list-view'");
?>
      <?php 
echo html::commonButton($lang->file->uploadSource, 'btn btn-sm btn-primary', "data-toggle='modal' data-target='#uploadModal'");
?>
    </span>
  </div>
  <div id='imageView' class='panel-body'>
    <ul class='files-list clearfix'>
    <?php 
foreach ($files as $file) {
    ?>
        <?php 
    $imageHtml = '';
    $fileHtml = '';
    $fullURL = html::input('', $file->fullURL, "size='" . strlen($file->fullURL) . "' style='border:none; background:none;' onmouseover='this.select()'");
    if ($file->isImage) {
        $imageHtml .= "<li class='file-image file-{$file->extension}'>";
        $imageHtml .= html::a(helper::createLink('file', 'download', "fileID={$file->id}&mose=left"), html::image($file->fullURL), "target='_blank' data-toggle='lightbox'");
コード例 #29
0
ファイル: waring.htm.php プロジェクト: caiwenhao/zentao
echo $title;
?>
</strong>
  </div>
</div>
<?php 
if ($error) {
    ?>
<div class='alert alert-danger with-icon'>
  <i class='icon-info-sign'></i>
  <div class='content'>
    <h3><?php 
    echo $lang->extension->waringInstall;
    ?>
</h3>
    <p><?php 
    echo $error;
    ?>
</p>
    <p class='text-center'><?php 
    echo html::commonButton($lang->extension->refreshPage, 'onclick=location.href=location.href');
    ?>
</p>
  </div>
</div>
<?php 
}
?>
</body>
</html>
コード例 #30
0
ファイル: step4.html.php プロジェクト: huokedu/zentao
</td></tr>
</table>
<?php 
} elseif (isset($success)) {
    ?>
<table class='table-6' align='center'>
  <caption><?php 
    echo $lang->install->success;
    ?>
</caption>
  <tr><td><?php 
    echo $lang->install->afterSuccess;
    ?>
</td></tr>
  <tr><td><?php 
    echo html::commonButton($lang->install->pre, "onclick='javascript:history.back(-1)'");
    ?>
</td></tr>
</table>
<?php 
} else {
    ?>
<form method='post' target='hiddenwin'>
<table class='table-6' align='center'>
  <caption><?php 
    echo $lang->install->getPriv;
    ?>
</caption>
  <tr>
    <th class='rowhead'><?php 
    echo $lang->install->company;