当前位置: 首页>>代码示例>>PHP>>正文


PHP html::commonButton方法代码示例

本文整理汇总了PHP中html::commonButton方法的典型用法代码示例。如果您正苦于以下问题:PHP html::commonButton方法的具体用法?PHP html::commonButton怎么用?PHP html::commonButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在html的用法示例。


在下文中一共展示了html::commonButton方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

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>';
开发者ID:heeeello,项目名称:zentaopms,代码行数:31,代码来源:browse.html.php

示例2:

        </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';
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:create.html.php

示例3:

</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;
开发者ID:fanscky,项目名称:HTPMS,代码行数:31,代码来源:batchcreate.html.php

示例4: join

 *
 * @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 <chunsheng@cnezsoft.com>
 * @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>
开发者ID:huokedu,项目名称:zentao,代码行数:30,代码来源:uninstall.html.php

示例5:

      </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';
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:linkcontact.html.php

示例6:

        <?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>
开发者ID:nanata1115,项目名称:zentaopms,代码行数:31,代码来源:task.html.php

示例7: count

    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';
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:31,代码来源:story.html.php

示例8:

?>
'>
            <?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>";
    }
开发者ID:nanata1115,项目名称:zentaopms,代码行数:31,代码来源:browse.html.php

示例9:

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>
开发者ID:mustafakarali,项目名称:b2c-1,代码行数:30,代码来源:waring.htm.php

示例10:

?>
      </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>';
    }
    ?>
开发者ID:heeeello,项目名称:zentaopms,代码行数:31,代码来源:buildform.html.php

示例11:

    ?>
</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';
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:edit.html.php

示例12:

      <?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';
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:admin.html.php

示例13:

    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') {
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:kanban.html.php

示例14: foreach

<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>';
}
开发者ID:laiello,项目名称:zentaoms,代码行数:18,代码来源:buildtemplates.html.php

示例15: inLink

    }
    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>
开发者ID:XMGmen,项目名称:zentao,代码行数:31,代码来源:cases.html.php


注:本文中的html::commonButton方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。