Example #1
0
echo html::icon($lang->icons['story']);
?>
</span>
    <strong><?php 
echo $lang->story->common . $lang->colon . $lang->story->batchClose;
?>
</strong>
    <small class='text-danger'><?php 
echo html::icon($lang->icons['batchClose']);
?>
</small>
  </div>
</div>

<form class='form-condensed' method='post' target='hiddenwin' action="<?php 
echo inLink('batchClose', "from=storyBatchClose");
?>
">
  <table class='table table-fixed table-form'>
  <thead>
    <tr>
      <th class='w-30px'> <?php 
echo $lang->idAB;
?>
</th> 
      <th>                <?php 
echo $lang->story->title;
?>
</th>
      <th class='w-80px'> <?php 
echo $lang->story->status;
Example #2
0
 /**
  * Confirm testcase changed. 
  * 
  * @param  int    $caseID 
  * @access public
  * @return void
  */
 public function confirmChange($caseID)
 {
     $case = $this->testcase->getById($caseID);
     $this->dao->update(TABLE_TESTRUN)->set('version')->eq($case->version)->where('`case`')->eq($caseID)->exec();
     die(js::locate(inLink('view', "caseID={$caseID}"), 'parent'));
 }
Example #3
0
}
?>
'>
            <?php 
if (common::hasPriv('productplan', 'linkBug')) {
    ?>
            <div class='action'><?php 
    echo html::a("javascript:showLink({$plan->id}, \"bug\")", '<i class="icon-bug"></i> ' . $lang->productplan->linkBug, '', "class='btn btn-sm btn-primary'");
    ?>
</div>
            <div class='linkBox'></div>
            <?php 
}
?>
            <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkBug', "planID={$plan->id}&orderBy={$orderBy}");
?>
">
              <table class='table tablesorter table-condensed table-hover table-striped table-borderless table-fixed' id='bugList'>
                <?php 
$vars = "planID={$plan->id}&type=bug&orderBy=%s&link={$link}&param={$param}";
?>
                <thead>
                <tr>
                  <th class='w-id {sorter:false}'>    <?php 
common::printOrderLink('id', $orderBy, $vars, $lang->idAB);
?>
</th>
                  <th class='w-pri {sorter:false}'>   <?php 
common::printOrderLink('pri', $orderBy, $vars, $lang->priAB);
?>
Example #4
0
      <tfoot>
        <tr>
          <td colspan='9' class='text-left'>
            <?php 
if (count($allStories)) {
    echo "<div class='table-actions clearfix'><div class='btn-group'>" . html::selectAll('unlinkedStoriesForm') . html::selectReverse('unlinkedStoriesForm') . '</div>' . html::submitButton($lang->story->linkStory) . '</div>';
}
?>
          </td>
        </tr>
      </tfoot>
    </table>
  </form>
  <hr class='mg-0'>
  <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkStory');
?>
" id='linkedStoriesForm'>
    <table class='table table-condensed table-hover table-striped tablesorter table-fixed'> 
      <caption class='text-left text-important'><?php 
echo html::icon('link');
?>
 &nbsp;<strong><?php 
echo $lang->productplan->linkedStories;
?>
</strong> (<?php 
echo count($planStories);
?>
)</caption>
      <thead>
      <tr class='colhead'>
Example #5
0
}
?>
' id='leftBugs'>
            <?php 
if (common::hasPriv('release', 'linkBug')) {
    ?>
            <div class='action'><?php 
    echo html::a("javascript:showLink({$release->id}, \"leftBug\")", '<i class="icon-bug"></i> ' . $lang->release->linkBug, '', "class='btn btn-sm btn-primary'");
    ?>
</div>
            <div class='linkBox'></div>
            <?php 
}
?>
            <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkBug', "releaseID={$release->id}&type=leftBug");
?>
" id='linkedBugsForm'>
            <table class='table table-hover table-condensed table-striped tablesorter table-fixed' id='leftBugList'>
              <thead>
                <tr>
                  <th class='w-id'><?php 
echo $lang->idAB;
?>
</th>
                  <th class='w-severity'><?php 
echo $lang->bug->severityAB;
?>
</th>
                  <th><?php 
echo $lang->bug->title;
Example #6
0
?>
</strong>
    <?php 
if ($productName) {
    ?>
    <small class='text-muted'><?php 
    echo html::icon($lang->icons['product']) . ' ' . $lang->story->product . $lang->colon . ' ' . $productName;
    ?>
</small>
    <?php 
}
?>
  </div>
</div>
<form class='form-condensed' method='post' target='hiddenwin' action="<?php 
echo inLink('batchEdit', "from=storyBatchEdit");
?>
">
  <table class='table table-form table-fixed'>
    <thead>
      <tr class='text-center'>
        <th class='w-30px'> <?php 
echo $lang->idAB;
?>
</th> 
        <th class='w-200px'><?php 
echo $lang->story->module;
?>
</th>
        <th class='w-200px'><?php 
echo $lang->story->planAB;
Example #7
0
  <tr valign='top'>
    <td class='side'>
      <div class='box-title'><?php 
echo $lang->user->dynamic;
?>
</div>
      <div class='box-content'>
        <?php 
echo html::a(inLink('dynamic', "period=today&account={$account}"), $lang->action->dynamic->today) . '<br />';
echo html::a(inLink('dynamic', "period=yesterday&account={$account}"), $lang->action->dynamic->yesterday) . '<br />';
echo html::a(inLink('dynamic', "period=twodaysago&account={$account}"), $lang->action->dynamic->twoDaysAgo) . '<br />';
echo html::a(inLink('dynamic', "period=thisweek&account={$account}"), $lang->action->dynamic->thisWeek) . '<br />';
echo html::a(inLink('dynamic', "period=lastweek&account={$account}"), $lang->action->dynamic->lastWeek) . '<br />';
echo html::a(inLink('dynamic', "period=thismonth&account={$account}"), $lang->action->dynamic->thisMonth) . '<br />';
echo html::a(inLink('dynamic', "period=lastmonth&account={$account}"), $lang->action->dynamic->lastMonth) . '<br />';
echo html::a(inLink('dynamic', "period=all&account={$account}"), $lang->action->dynamic->all) . '<br />';
?>
      </div>
    </td>
    <td class='divider'></td>
    <td>
      <table class='table-1 colored tablesorter'>
        <thead>
        <tr class='colhead'>
          <th class='w-150px'><?php 
echo $lang->action->date;
?>
</th>
          <th class='w-user'> <?php 
echo $lang->action->actor;
?>
Example #8
0
     $method = '';
     $popup = '';
     $target = '_self';
     if ($webapp->target == 'popup') {
         $width = 0;
         $height = 0;
         if ($webapp->size) {
             list($width, $height) = explode('x', $webapp->size);
         }
         $method = "popup({$width}, {$height});";
         $popup = 'popup';
     } else {
         $method = "popup(1024, 600);";
         $popup = 'popup';
     }
     echo isset($installeds[$webapp->id]) ? html::commonButton($lang->webapp->installed, "disabled='disabled' style='color:gray'") : html::a(inLink('install', "webappID={$webapp->id}"), $lang->webapp->install, '_self', "class='button-c iframe'");
     common::printLink('webapp', 'view', "webappID={$webapp->id}&type=api", $lang->webapp->view, '', "class='button-c apiapp'");
     echo html::a($url, $lang->webapp->preview, '', "id='useapp{$webapp->id}' class='button-c {$popup}' onclick='{$method}'");
     ?>
           </td>
         </tr>
       </table>
     </li>
     <?php 
 }
 ?>
   </ul>
   <p class='c-left'><?php 
 if ($pager) {
     $pager->show();
 }
Example #9
0
      <tfoot>
        <tr>
          <td colspan='8' class='text-left'>
            <?php 
if (count($allStories)) {
    echo "<div class='table-actions clearfix'><div class='btn-group'>" . html::selectAll('unlinkedStoriesForm') . html::selectReverse('unlinkedStoriesForm') . '</div>' . html::submitButton($lang->story->linkStory) . '</div>';
}
?>
          </td>
        </tr>
      </tfoot>
    </table>
  </form>
  <hr class='mg-0'>
  <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkStory', "buildID={$build->id}");
?>
" id='linkedStoriesForm'>
    <table class='table table-condensed table-hover table-striped tablesorter table-fixed'> 
      <caption class='text-left text-important'><?php 
echo html::icon('link');
?>
 &nbsp;<strong><?php 
echo $lang->productplan->linkedStories;
?>
</strong> (<?php 
echo count($buildStories);
?>
)</caption>
      <thead>
      <tr class='colhead'>
Example #10
0
 */
include '../../common/view/header.html.php';
include '../../common/view/tablesorter.html.php';
include './featurebar.html.php';
?>
<div class='sub-featurebar'>
  <ul class='nav'>
    <?php 
echo "<li id='today'>" . html::a(inLink('dynamic', "period=today&account={$account}"), $lang->action->dynamic->today) . '</li>';
echo "<li id='yesterday'>" . html::a(inLink('dynamic', "period=yesterday&account={$account}"), $lang->action->dynamic->yesterday) . '</li>';
echo "<li id='twodaysago'>" . html::a(inLink('dynamic', "period=twodaysago&account={$account}"), $lang->action->dynamic->twoDaysAgo) . '</li>';
echo "<li id='thisweek'>" . html::a(inLink('dynamic', "period=thisweek&account={$account}"), $lang->action->dynamic->thisWeek) . '</li>';
echo "<li id='lastweek'>" . html::a(inLink('dynamic', "period=lastweek&account={$account}"), $lang->action->dynamic->lastWeek) . '</li>';
echo "<li id='thismonth'>" . html::a(inLink('dynamic', "period=thismonth&account={$account}"), $lang->action->dynamic->thisMonth) . '</li>';
echo "<li id='lastmonth'>" . html::a(inLink('dynamic', "period=lastmonth&account={$account}"), $lang->action->dynamic->lastMonth) . '</li>';
echo "<li id='all'>" . html::a(inLink('dynamic', "period=all&account={$account}"), $lang->action->dynamic->all) . '</li>';
?>
  </ul>
</div>
<table class='table tablesorter table-fixed'>
  <thead>
  <tr class='colhead'>
    <th class='w-150px'><?php 
echo $lang->action->date;
?>
</th>
    <th class='w-user'> <?php 
echo $lang->action->actor;
?>
</th>
    <th class='w-100px'><?php 
Example #11
0
echo $lang->slide->group;
?>
</strong>
    <div class='panel-actions'><?php 
commonModel::printLink('slide', 'createGroup', '', '<i class="icon-plus-sign"></i> ' . $lang->slide->createGroup, "class='btn btn-primary' data-toggle='modal'");
?>
</div>
  </div>
  <div class='panel-body'>
    <section class='row cards-borderless'>
      <?php 
foreach ($groups as $group) {
    ?>
      <div class='col-lg-3 col-md-4 col-sm-6'>
        <a class='card card-slide' href='<?php 
    echo inLink('browse', "groupID={$group->id}");
    ?>
'>
          <?php 
    $count = count($group->slides);
    ?>
          <div class='slides-holder slides-holder-<?php 
    echo min(5, $count);
    ?>
'>
            <?php 
    if (!empty($group->slides)) {
        ?>
            <?php 
        $index = 0;
        ?>
Example #12
0
 * @author      Chunsheng Wang <*****@*****.**>
 * @package     action
 * @version     $Id$
 * @link        http://www.zentao.net
 */
include '../../common/view/header.html.php';
?>
<div id='menuActions'>
  <?php 
if ($type == 'hidden') {
    echo html::a(inLink('trash', "type=all"), $lang->goback, "class='btn'");
}
?>
  <?php 
if ($type == 'all') {
    echo html::a(inLink('trash', "type=hidden"), "<i class='icon-eye-close'></i> " . $lang->action->hidden, "class='btn btn-primary'");
}
?>
</div>
<div class='panel'>
  <table class='table table-hover tablesorter table-border'>
    <?php 
$vars = "type={$type}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";
?>
    <thead>
      <tr class='class-center'>
        <th class='w-90px'><?php 
commonModel::printOrderLink('objectType', $orderBy, $vars, $lang->action->objectType);
?>
</th>
        <th class='w-90px'><?php 
Example #13
0
}
?>
' id='bugs'>
            <?php 
if (common::hasPriv('release', 'linkBug')) {
    ?>
            <div class='action'><?php 
    echo html::a("javascript:showLink({$release->id}, \"bug\")", '<i class="icon-bug"></i> ' . $lang->release->linkBug, '', "class='btn btn-sm btn-primary'");
    ?>
</div>
            <div class='linkBox'></div>
            <?php 
}
?>
            <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkBug', "releaseID={$release->id}");
?>
" id='linkedBugsForm'>
            <table class='table table-hover table-condensed table-striped tablesorter table-fixed' id='bugList'>
              <thead>
                <tr>
                  <th class='w-id'><?php 
echo $lang->idAB;
?>
</th>
                  <th><?php 
echo $lang->bug->title;
?>
</th>
                  <th class='w-100px'><?php 
echo $lang->bug->status;
Example #14
0
'</script>
<table class='cont-lt1'>
  <tr valign='top'>
    <td class='side'>
      <div class='box-title'><?php 
echo $lang->user->todo;
?>
</div>
      <div class='box-content'>
        <?php 
echo html::a(inLink('todo', "account={$account}&type=today"), $lang->todo->todayTodos) . '<br />';
echo html::a(inLink('todo', "account={$account}&type=thisweek"), $lang->todo->thisWeekTodos) . '<br />';
echo html::a(inLink('todo', "account={$account}&type=lastweek"), $lang->todo->lastWeekTodos) . '<br />';
echo html::a(inLink('todo', "account={$account}&type=future"), $lang->todo->futureTodos) . '<br />';
echo html::a(inLink('todo', "account={$account}&type=all"), $lang->todo->allDaysTodos) . '<br />';
echo html::a(inLink('todo', "account={$account}&type=before"), $lang->todo->allUndone) . '<br />';
echo html::input('date', $date, "class='w-date todo-date' onchange=changeDate(this.value)");
?>
      </div>
    </td>
    <td class='divider'></td>
    <td>
      <form method='post' target='hiddenwin' action='<?php 
echo $this->createLink('todo', 'import2Today');
?>
' id='todoform'>
        <table class='table-1 tablesorter'>
          <thead>
          <tr class='colhead'>
            <th class='w-id'><?php 
echo $lang->idAB;
Example #15
0
 /**
  * Confirm clear data.
  * 
  * @param  string $confirm ''|no|yes
  * @access public
  * @return void
  */
 public function clearData($confirm = '')
 {
     if ($confirm == 'no') {
         die(js::confirm($this->lang->admin->confirmClearData, inlink('clearData', "confirm=yes")));
     } elseif ($confirm == 'yes') {
         $result = $this->admin->clearData();
         if (!$result) {
             die(js::alert($this->lang->admin->clearDataFailed));
         }
         js::alert($this->lang->admin->clearDataSuccessfully);
         die(js::locate(inLink('index'), 'parent'));
     }
     $this->display();
 }
Example #16
0
 <?php 
    echo html::icon($lang->icons['test']);
    ?>
</small>
    </div>
    <div class='actions'><div class='text text-info'><?php 
    echo $lang->mail->sendmailTips;
    ?>
</div></div>
  </div>
  <form class='form-condensed' method='post' target='resultWin'>
    <table class='table table-form'>
      <tr>
        <td><?php 
    echo html::select('to', $users, $app->user->account, "class='form-control chosen'");
    ?>
</td>
        <td class='text-left'>
          <?php 
    echo html::submitButton($lang->mail->test);
    echo html::linkButton($lang->mail->edit, inLink('edit'));
    ?>
        </td>
      </tr>
    </table>
  </form>
  <table class='table table-form'><tr><td><iframe id='resultWin' name='resultWin'></iframe></td></tr></table>
</div>
<?php 
    include '../../common/view/footer.html.php';
}
Example #17
0
  <div class='panel-heading'>
    <strong><i class='icon-picture'></i> <?php 
echo $groupName;
?>
</strong>
    <div class='panel-actions'>
      <?php 
commonModel::printLink('slide', 'create', "groupID={$group}", '<i class="icon-plus"></i> ' . $lang->slide->create, "class='btn btn-primary'");
?>
      <?php 
commonModel::printLink('slide', 'admin', '', $lang->slide->return, "class='btn btn-primary return'");
?>
    </div>
  </div>
  <form id='sortForm' action='<?php 
echo inLink('sort');
?>
' method='post'>
    <table class='table'>
      <tbody>
        <?php 
foreach ($slides as $key => $slide) {
    ?>
        <?php 
    if ($slide->backgroundType == 'color') {
        $slide->height = $slide->height ? $slide->height : 180;
    }
    ?>
        <tr class='text-middle'>
          <td>
            <?php 
Example #18
0
</div>
                    </div>
                  </td>
                </tr>
                </tfoot>
              </table>
            </form>
          </div>
          <div id='batchUnlinkBug' class='tab-pane <?php 
if ($type == 'bug') {
    echo 'active';
}
?>
'>
            <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkBug');
?>
">
              <table class='table tablesorter table-condensed table-hover table-striped table-borderless' id='bugList'>
                <?php 
$vars = "planID={$plan->id}&type=bug&orderBy=%s";
?>
                <thead>
                <tr>
                  <th class='w-id'>    <?php 
common::printOrderLink('id', $orderBy, $vars, $lang->idAB);
?>
</th>
                  <th class='w-pri'>   <?php 
common::printOrderLink('pri', $orderBy, $vars, $lang->priAB);
?>
Example #19
0
}
?>
          </td>
        </tr>
      </table>
      <?php 
if ($pdoResult == 'fail' or $pdoMySQLResult == 'fail') {
    ?>
      <div class='alert'><?php 
    echo "<p class='small text-left'>" . '<strong>' . $lang->install->phpINI . '</strong><br />' . nl2br($this->install->getIniInfo()) . '</p>';
    ?>
</div>
      <?php 
}
?>
    </div>
    <div class='modal-footer'>
    <?php 
if ($wholeResult == 'ok') {
    echo html::a(inLink('step2'), $lang->install->next, "class='btn btn-primary'");
}
if ($wholeResult == 'fail') {
    echo html::a(inLink('step1'), $lang->install->reload, "class='btn btn-primary'");
}
?>
    </div>
  </div>
</div>

<?php 
include './footer.html.php';
Example #20
0
          </div>
        </a>
        <div class='card-heading text-center'>
          <div class='group-title' data-id='<?php 
    echo $group->id;
    ?>
' data-action="<?php 
    echo inlink('editGroup', "groupID={$group->id}");
    ?>
">
            <span class='group-name'><?php 
    echo $group->name;
    ?>
</span>&nbsp;&nbsp;
            <?php 
    echo html::a(inLink('browse', "groupID={$group->id}"), $lang->edit);
    ?>
            <?php 
    echo html::a('javascript:;', $lang->slide->rename, "class='edit-group-btn'");
    ?>
            <?php 
    echo html::a(inlink('removeGroup', "groupID={$group->id}"), $lang->delete, "class='deleter'");
    ?>
          </div>
        </div>
      </div>
      <?php 
}
?>
      <div class='col-lg-3 col-md-4 col-sm-6'>
        <?php 
Example #21
0
}
?>
' id='bugs'>
            <?php 
if (common::hasPriv('build', 'linkBug')) {
    ?>
            <div class='action'><?php 
    echo html::a("javascript:showLink({$build->id}, \"bug\")", '<i class="icon-bug"></i> ' . $lang->build->linkBug, '', "class='btn btn-sm btn-primary'");
    ?>
</div>
            <div class='linkBox'></div>
            <?php 
}
?>
            <form method='post' target='hiddenwin' action="<?php 
echo inLink('batchUnlinkBug', "build={$build->id}");
?>
" id='linkedBugsForm'>
            <table class='table table-hover table-condensed table-striped tablesorter table-fixed' id='bugList'>
              <thead>
                <tr>
                  <th class='w-id'><?php 
echo $lang->idAB;
?>
</th>
                  <th><?php 
echo $lang->bug->title;
?>
</th>
                  <th class='w-100px'><?php 
echo $lang->bug->status;
Example #22
0
  <div class='heading'><?php 
echo html::icon($lang->icons['trash']);
?>
 <?php 
echo $lang->action->trash;
?>
</div>
  <div class='actions'>
    <?php 
if ($type == 'hidden') {
    echo html::a(inLink('trash', "type=all"), $lang->goback, '', "class='btn'");
}
?>
    <?php 
if ($type == 'all') {
    echo html::a(inLink('trash', "type=hidden"), "<i class='icon-eye-close'></i> " . $lang->action->dynamic->hidden, '', "class='btn btn-danger'");
}
?>
  </div>
</div>

<table class='table tablesorter'>
  <?php 
$vars = "type={$type}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";
?>
  <thead>
  <tr class='colhead'>
    <th class='w-90px'><?php 
common::printOrderLink('objectType', $orderBy, $vars, $lang->action->objectType);
?>
</th>
Example #23
0
        echo "<div class='btn-group'>" . html::selectButton() . '</div>';
    }
    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>
Example #24
0
?>
<div class='panel'>
  <div class='panel-heading'><strong><i class='icon-envelope'></i> <?php 
echo $lang->mail->common;
?>
 <i class='icon-arrow-right'></i> <?php 
echo $lang->mail->test;
?>
</strong></div>
  <div class='panel-body'>
    <form method='post' id='mailForm'>
      <div class='form-group'><label for='to' class='col-sm-12'><?php 
echo $lang->mail->inputFromEmail;
?>
</label></div>
      <div class='form-group'>
        <div class='col-xs-10 col-sm-6 col-md-3'><?php 
echo html::input('to', $app->user->email, 'class="form-control"');
?>
</div>
        <div class='col-xs-2 col-sm-6 col-md-3'><?php 
echo html::submitButton($lang->mail->test) . html::linkButton($lang->mail->edit, inLink('edit'));
?>
</div>
      </div>
    </form>
  </div>
  <div class='hidden panel-notice'><div id='result'></div></div>
</div>
<?php 
include '../../common/view/footer.admin.html.php';
Example #25
0
  <div class='heading'>
    <span class='prefix'><?php 
echo html::icon($lang->icons['project']);
?>
</span>
    <strong><small class='text-muted'><?php 
echo html::icon($lang->icons['batchEdit']);
?>
</small> <?php 
echo $lang->project->common . $lang->colon . $lang->project->batchEdit;
?>
</strong>
  </div>
</div>
<form class='form-condensed' method='post' target='hiddenwin' action='<?php 
echo inLink('batchEdit');
?>
'>
<table class='table table-form table-fixed'>
  <thead>
    <tr class='text-center'>
      <th class='w-50px'><?php 
echo $lang->idAB;
?>
</th>
      <th>        <?php 
echo $lang->project->name;
?>
 <span class='required'></span></th>
      <th class='w-150px'><?php 
echo $lang->project->code;
Example #26
0
 /**
  * add by yuzz
  * Print backLink and preLink and nextLink.
  *
  * @param  string $backLink
  * @param  object $preAndNext
  * @access public
  * @return void
  */
 public static function printRPN3($backLink, $preAndNext = '', $planID = '', $linkTemplate = '')
 {
     global $lang, $app;
     if (isonlybody()) {
         return false;
     }
     echo html::a($backLink, '<i class="icon-goback icon-level-up icon-large icon-rotate-270"></i>', '', "class='btn' title={$lang->goback}");
     if (isset($preAndNext->pre) and $preAndNext->pre) {
         $id = (isset($_SESSION['testcaseOnlyCondition']) and !$_SESSION['testcaseOnlyCondition'] and $app->getModuleName() == 'testcase' and isset($preAndNext->pre->case)) ? 'case' : 'id';
         $title = isset($preAndNext->pre->title) ? $preAndNext->pre->title : $preAndNext->pre->name;
         $title = '#' . $preAndNext->pre->{$id} . ' ' . $title;
         $link = $linkTemplate ? sprintf($linkTemplate, $preAndNext->pre->{$id}) : inLink('bugview', "planID={$planID}&bugID={$preAndNext->pre->{$id}}");
         echo html::a($link, '<i class="icon-pre icon-chevron-left"></i>', '', "id='pre' class='btn' title='{$title}'");
     }
     if (isset($preAndNext->next) and $preAndNext->next) {
         $id = (isset($_SESSION['testcaseOnlyCondition']) and !$_SESSION['testcaseOnlyCondition'] and $app->getModuleName() == 'testcase' and isset($preAndNext->next->case)) ? 'case' : 'id';
         $title = isset($preAndNext->next->title) ? $preAndNext->next->title : $preAndNext->next->name;
         $title = '#' . $preAndNext->next->{$id} . ' ' . $title;
         $link = $linkTemplate ? sprintf($linkTemplate, $preAndNext->next->{$id}) : inLink('bugview', "planID={$planID}&bugID={$preAndNext->next->{$id}}");
         echo html::a($link, '<i class="icon-pre icon-chevron-right"></i>', '', "id='next' class='btn' title='{$title}'");
     }
 }
Example #27
0
 <?php 
    echo html::icon($lang->icons['test']);
    ?>
</small>
    </div>
    <div class='actions'><div class='text text-info'><?php 
    echo $lang->mail->sendmailTips;
    ?>
</div></div>
  </div>
  <form class='form-condensed' method='post' target='resultWin'>
    <table class='table table-form'>
      <tr>
        <td><?php 
    echo html::select('to', $users, $app->user->account, "class='form-control chosen'");
    ?>
</td>
        <td class='text-left'>
          <?php 
    echo html::submitButton($lang->mail->test);
    echo html::linkButton($lang->mail->edit, inLink($config->mail->mta == 'sendcloud' ? 'sendcloud' : 'edit'));
    ?>
        </td>
      </tr>
    </table>
  </form>
  <table class='table table-form'><tr><td><iframe id='resultWin' name='resultWin'></iframe></td></tr></table>
</div>
<?php 
    include '../../common/view/footer.html.php';
}
Example #28
0
$mergeColums = $browseType == 'needconfirm' ? 5 : 10;
?>
     <td colspan='<?php 
echo $mergeColums;
?>
'>
       <?php 
if ($cases) {
    ?>
       <div class='f-left'>
       <?php 
    if ($canBatchEdit or $canBatchRun) {
        echo html::selectAll() . html::selectReverse();
    }
    if ($canBatchEdit) {
        echo html::submitButton($lang->edit, "onclick='changeAction(\"" . inLink('batchEdit', "productID={$productID}") . "\")'");
    }
    if ($canBatchRun) {
        echo html::submitButton($lang->testtask->runCase, "onclick='changeAction(\"" . $this->createLink('testtask', 'batchRun', "productID={$productID}&orderBy={$orderBy}") . "\")'");
    }
    ?>
       </div>
       <?php 
}
?>
       <?php 
$pager->show();
?>
     </td>
   </tr>
 </tfoot>
Example #29
0
      <h5><?php 
    echo $lang->my->home->noProductsTip;
    ?>
</h5>
      <?php 
    echo html::a($this->createLink('product', 'create'), "<i class='icon-plus'></i> " . $lang->my->home->createProduct, '', "class='btn btn-success'");
    ?>
    </div>
  </div>
</div>
<?php 
} else {
    $canOrder = (common::hasPriv('product', 'updateOrder') and strpos($orderBy, 'order') !== false);
    ?>
<form method='post' action='<?php 
    echo inLink('batchEdit', "productID={$productID}");
    ?>
' id='productsForm'>
  <table class='table table-condensed table-hover table-striped tablesorter'>
    <?php 
    $vars = "locate=no&productID={$productID}&status={$status}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";
    ?>
    <thead>
      <tr>
        <th class='w-id'><?php 
    common::printOrderLink('id', $orderBy, $vars, $lang->idAB);
    ?>
</th>
        <th><?php 
    common::printOrderLink('name', $orderBy, $vars, $lang->product->name);
    ?>
Example #30
0
 /**
  * Print backLink and preLink and nextLink.
  * 
  * @param  string $backLink 
  * @param  object $preAndNext 
  * @access public
  * @return void
  */
 public static function printRPN($backLink, $preAndNext = '', $linkTemplate = '')
 {
     global $lang, $app;
     if (isonlybody()) {
         return false;
     }
     echo html::a($backLink, $lang->goback, "class='btn btn-default' id='backButton'");
     if (isset($preAndNext->pre) and $preAndNext->pre) {
         $id = 'id';
         $title = isset($preAndNext->pre->title) ? $preAndNext->pre->title : (isset($preAndNext->pre->name) ? $preAndNext->pre->name : '');
         $title = '#' . $preAndNext->pre->{$id} . ' ' . $title;
         $link = $linkTemplate ? sprintf($linkTemplate, $preAndNext->pre->{$id}) : inLink('view', "ID={$preAndNext->pre->{$id}}");
         echo html::a($link, '<i class="icon-pre icon-chevron-left"></i>', "id='pre' class='btn' title='{$title}'");
     }
     if (isset($preAndNext->next) and $preAndNext->next) {
         $id = 'id';
         $title = isset($preAndNext->next->title) ? $preAndNext->next->title : (isset($preAndNext->next->name) ? $preAndNext->next->name : '');
         $title = '#' . $preAndNext->next->{$id} . ' ' . $title;
         $link = $linkTemplate ? sprintf($linkTemplate, $preAndNext->next->{$id}) : inLink('view', "ID={$preAndNext->next->{$id}}");
         echo html::a($link, '<i class="icon-pre icon-chevron-right"></i>', "id='next' class='btn' title='{$title}'");
     }
 }