Example #1
0
    ?>
'><?php 
    echo $lang->story->statusList[$story->status];
    ?>
</td>
      <td><?php 
    echo $lang->story->stageList[$story->stage];
    ?>
</td>
      <td class='text-right'>
        <?php 
    common::printIcon('story', 'change', "storyID={$story->id}", $story, 'list', 'random');
    common::printIcon('story', 'review', "storyID={$story->id}", $story, 'list', 'search');
    common::printIcon('story', 'close', "storyID={$story->id}", $story, 'list', 'off', '', 'text-danger');
    common::printIcon('story', 'edit', "storyID={$story->id}", $story, 'list', 'pencil');
    common::printIcon('story', 'createCase', "productID={$story->product}&moduleID=0&from=&param=0&storyID={$story->id}", '', 'list', 'sitemap');
    ?>
      </td>
    </tr>
    <?php 
}
?>
  </tbody>
  <tfoot>
  <tr>
    <td colspan='10'>
      <div class='table-actions clearfix'>
      <?php 
if (count($stories)) {
    if ($canBatchEdit or $canBatchRun) {
        echo "<div class='btn-group'>" . html::selectButton() . '</div>';
Example #2
0
      </table>
      <?php 
include '../../common/view/action.html.php';
?>
    </div>
    <div class='actions'>
      <div class='btn-group'>
      <?php 
if ($this->session->effortList) {
    $browseLink = $this->session->effortList;
} elseif ($effort->account == $app->user->account) {
    $browseLink = $this->createLink('my', 'effort');
} else {
    $browseLink = $this->createLink('user', 'effort', "account={$effort->account}");
}
if ($effort->account == $app->user->account) {
    common::printIcon('effort', 'edit', "effortID={$effort->id}");
    common::printIcon('effort', 'delete', "effortID={$effort->id}", '', 'button', '', 'hiddenwin');
}
?>
      </div>
      <div class='btn-group'>
        <?php 
common::printRPN($browseLink);
?>
      </div>
    </div>
  </div>
</div>
<?php 
include '../../common/view/footer.html.php';
Example #3
0
    if (isset($times[$todo->end])) {
        echo ' ~ ' . $times[$todo->end];
    }
    ?>
    </td>
  </tr>  
</table>
<div class='a-center f-16px strong pb-10px'>
  <?php 
    if ($this->session->todoList) {
        $browseLink = $this->session->todoList;
    } elseif ($todo->account == $app->user->account) {
        $browseLink = $this->createLink('my', 'todo');
    } else {
        $browseLink = $this->createLink('user', 'todo', "account={$todo->account}");
    }
    common::printIcon('todo', 'finish', "id={$todo->id}", $todo, 'list', '', 'hiddenwin');
    if ($todo->account == $app->user->account) {
        common::printIcon('todo', 'edit', "todoID={$todo->id}");
        common::printIcon('todo', 'delete', "todoID={$todo->id}", '', 'button', '', 'hiddenwin');
    }
    common::printRPN($browseLink);
    ?>
</div>
<?php 
    $actionTheme = 'table';
    include '../../common/view/action.html.php';
} else {
    echo $lang->todo->thisIsPrivate;
}
include '../../common/view/footer.html.php';
Example #4
0
  <div class='actions'>
  <?php 
$browseLink = $this->session->productPlanList ? $this->session->productPlanList : inlink('browse', "planID={$plan->id}");
if (!$plan->deleted) {
    ob_start();
    echo "<div class='btn-group'>";
    if (common::hasPriv('productplan', 'linkStory')) {
        echo html::a(inlink('view', "planID={$plan->id}&type=story&orderBy=id_desc&link=true"), '<i class="icon-link"></i> ' . $lang->productplan->linkStory, '', "class='btn'");
    }
    if (common::hasPriv('productplan', 'linkBug')) {
        echo html::a(inlink('view', "planID={$plan->id}&type=bug&orderBy=id_desc&link=true"), '<i class="icon-bug"></i> ' . $lang->productplan->linkBug, '', "class='btn'");
    }
    echo '</div>';
    echo "<div class='btn-group'>";
    common::printIcon('productplan', 'edit', "planID={$plan->id}");
    common::printIcon('productplan', 'delete', "planID={$plan->id}", '', 'button', '', 'hiddenwin');
    echo '</div>';
    $actionLinks = ob_get_contents();
    ob_end_clean();
    echo $actionLinks;
}
common::printRPN($browseLink);
?>
  </div>
</div>
<div class='row-table'>
  <div class='col-main'>
    <div class='main'>
      <div class='tabs'>
        <ul class='nav nav-tabs'>
          <li class='<?php 
echo $case->id . $lang->colon . $case->title;
?>
</div>
  <div>
    <?php 
$browseLink = $app->session->caseList != false ? $app->session->caseList : $this->createLink('testcase', 'browse', "productID={$case->product}");
if (!$case->deleted) {
    ob_start();
    common::printIcon('testtask', 'runCase', "runID=0&caseID={$case->id}&version={$case->currentVersion}");
    common::printIcon('testtask', 'results', "runID=0&caseID={$case->id}&version={$case->version}");
    common::printIcon('testcase', 'createBug', "product={$case->product}&extra=caseID={$case->id},version={$case->version},runID=", '', 'button', 'createBug');
    common::printDivider();
    common::printIcon('testcase', 'edit', "caseID={$case->id}");
    common::printCommentIcon('testcase');
    common::printIcon('testcase', 'create', "productID={$case->product}&moduleID={$case->module}&from=testcase&param={$case->id}", '', 'button', 'copy');
    common::printIcon('testcase', 'delete', "caseID={$case->id}", '', 'button', '', 'hiddenwin');
    common::printDivider();
    common::printRPN($browseLink, $preAndNext);
    $actionLinks = ob_get_contents();
    ob_clean();
    echo $actionLinks;
}
?>
  </div>
</div>

<table class='cont-rt5'>
  <tr valign='top'>
    <td>
      <fieldset>
        <legend><?php 
Example #6
0
    echo $users[$task->owner];
    ?>
</td>
    <td><?php 
    echo $task->begin;
    ?>
</td>
    <td><?php 
    echo $task->end;
    ?>
</td>
    <td><?php 
    echo $lang->testtask->statusList[$task->status];
    ?>
</td>
    <td class='a-center'>
      <?php 
    common::printIcon('testtask', 'cases', "taskID={$task->id}", '', 'list');
    common::printIcon('testtask', 'linkCase', "taskID={$task->id}", '', 'list');
    common::printIcon('testtask', 'edit', "taskID={$task->id}", '', 'list');
    common::printIcon('testtask', 'delete', "taskID={$task->id}", '', 'list', '', 'hiddenwin');
    ?>
    </td>
  </tr>
  <?php 
}
?>
  </tbody>
</table>
<?php 
include '../../common/view/footer.html.php';
Example #7
0
    ?>
</td>
      <td class='text-left nobr'><nobr><?php 
    echo html::a($viewLink, $doc->title);
    ?>
</nobr></td>
      <td><?php 
    echo $users[$doc->addedBy];
    ?>
</td>
      <td><?php 
    echo $doc->addedDate;
    ?>
</td>
      <td>
        <?php 
    common::printIcon('doc', 'edit', "doc={$doc->id}", '', 'list');
    if (common::hasPriv('doc', 'delete')) {
        $deleteURL = $this->createLink('doc', 'delete', "docID={$doc->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"docList\",confirmDelete)", '<i class="icon-remove"></i>', '', "class='btn-icon' title='{$lang->doc->delete}'");
    }
    ?>
      </td>
    </tr>
    <?php 
}
?>
  </tbody>
</table>
<?php 
include '../../common/view/footer.html.php';
Example #8
0
echo $lang->task->estimate;
?>
</th>
            <td><?php 
echo html::input('estimate', $task->estimate, "class='form-control'");
?>
</td>
          </tr>  
          <tr>
            <th><?php 
echo $lang->task->consumed;
?>
</th>
            <td><?php 
echo $task->consumed . ' ';
common::printIcon('task', 'recordEstimate', "taskID={$task->id}", $task, 'list', '', '', 'iframe', true);
?>
</td>
          </tr>  
          <tr>
            <th><?php 
echo $lang->task->left;
?>
</th>
            <td><?php 
echo html::input('left', $task->left, "class='form-control'");
?>
</td>
          </tr>
        </table>
      </fieldset>
Example #9
0
'><?php 
    echo $lang->task->statusList[$task->status];
    ?>
</td>
      <td><?php 
    echo $users[$task->openedBy];
    ?>
</td>
      <td class='text-right'>
        <?php 
    common::printIcon('task', 'assignTo', "projectID={$task->project}&taskID={$task->id}", $task, 'list', 'hand-right', '', 'iframe', true);
    common::printIcon('task', 'start', "taskID={$task->id}", $task, 'list', 'play', '', 'iframe', true);
    common::printIcon('task', 'recordEstimate', "taskID={$task->id}", $task, 'list', 'time', '', 'iframe', true);
    common::printIcon('task', 'finish', "taskID={$task->id}", $task, 'list', 'ok-sign', '', 'iframe', true);
    common::printIcon('task', 'close', "taskID={$task->id}", $task, 'list', 'off', '', 'iframe', true);
    common::printIcon('task', 'edit', "taskID={$task->id}", '', 'list', 'pencil');
    ?>
      </td>
    </tr>
    <?php 
}
?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan='13'>
        <?php 
if (count($tasks)) {
    ?>
        <div class='table-actions clearfix'>
        <?php 
Example #10
0
        <ul class='dropdown-menu' id='exportActionMenu'>
        <?php 
$misc = common::hasPriv('testcase', 'export') ? "class='export'" : "class=disabled";
$link = common::hasPriv('testcase', 'export') ? $this->createLink('testcase', 'export', "productID={$productID}&orderBy={$orderBy}") : '#';
echo "<li>" . html::a($link, $lang->testcase->export, '', $misc) . "</li>";
$misc = common::hasPriv('testcase', 'exportTemplet') ? "class='export'" : "class=disabled";
$link = common::hasPriv('testcase', 'exportTemplet') ? $this->createLink('testcase', 'exportTemplet', "productID={$productID}") : '#';
echo "<li>" . html::a($link, $lang->testcase->exportTemplet, '', $misc) . "</li>";
?>
        </ul>
      </div>
      <?php 
common::printIcon('testcase', 'import', "productID={$productID}", '', 'button', '', '', 'export cboxElement iframe');
$initModule = isset($moduleID) ? (int) $moduleID : 0;
common::printIcon('testcase', 'batchCreate', "productID={$productID}&moduleID={$initModule}");
common::printIcon('testcase', 'create', "productID={$productID}&moduleID={$initModule}");
?>
    </div>
  </div>
  <div id='querybox' class='<?php 
if ($browseType == 'bysearch') {
    echo 'show';
}
?>
'></div>
</div>

<?php 
foreach (glob(dirname(dirname(__FILE__)) . "/ext/view/featurebar.*.html.hook.php") as $fileName) {
    include_once $fileName;
}
Example #11
0
?>
</a></li>
          <li <?php 
if ($type == 'leftBug') {
    echo "class='active'";
}
?>
><a href='#leftBugs' data-toggle='tab'><?php 
echo html::icon($lang->icons['bug'], 'red') . ' ' . $lang->release->generatedBugs;
?>
</a></li>
          <?php 
if ($countStories or $countBugs or $countLeftBugs) {
    ?>
          <li class='pull-right'><?php 
    common::printIcon('release', 'export', '', '', 'button', '', '', "export");
    ?>
</li>
          <?php 
}
?>
        </ul>
        <div class='tab-content'>
          <div class='tab-pane <?php 
if ($type == 'story') {
    echo 'active';
}
?>
' id='stories'>
            <?php 
if (common::hasPriv('release', 'linkStory')) {
Example #12
0
          <td class='<?php 
    echo $run->status;
    ?>
'><?php 
    echo $run->version < $run->caseVersion ? "<span class='warning'>{$lang->testcase->changed}</span>" : $lang->testtask->statusList[$run->status];
    ?>
</td>
          <td class='text-center'>
            <?php 
    common::printIcon('testtask', 'runCase', "id={$run->id}", '', 'list', '', '', 'runCase iframe');
    common::printIcon('testtask', 'results', "id={$run->id}", '', 'list', '', '', 'iframe');
    if (common::hasPriv('testtask', 'unlinkCase')) {
        $unlinkURL = $this->createLink('testtask', 'unlinkCase', "caseID={$run->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$unlinkURL}\",\"caseList\",confirmUnlink)", '<i class="icon-unlink"></i>', '', "title='{$lang->testtask->unlinkCase}' class='btn-icon'");
    }
    common::printIcon('testcase', 'createBug', "product={$productID}&extra=projectID={$task->project},buildID={$task->build},caseID={$run->case},version={$run->version},runID={$run->id},testtask={$taskID}", $run, 'list', 'bug', '', 'iframe');
    ?>
          </td>
        </tr>
        <?php 
}
?>
      </tbody>
      <tfoot>
        <tr>
          <td colspan='10'>
            <?php 
if ($runs) {
    ?>
            <div class='table-actions clearfix'>
Example #13
0
</td>
			  <td><?php 
    echo $user->visits;
    ?>
</td>
			  <td class='text-right'>
				  <?php 
    common::printIcon('user', 'edit', "userID={$user->id}&from=company", '', 'list');
    if (strpos($this->app->company->admins, ",{$user->account},") === false and common::hasPriv('user', 'delete')) {
        $deleteURL = $this->createLink('user', 'delete', "userID={$user->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"userList\",confirmDelete)", '<i class="icon-remove"></i>', '', "title='{$lang->user->delete}' class='btn-icon'");
    }
    if (strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked) < $this->config->user->lockMinutes * 60) {
        common::printIcon('user', 'unlock', "userID={$user->account}", '', 'list', '', "hiddenwin");
    } else {
        common::printIcon('kevinlogin', 'userLock', "userID={$user->account}", '', 'list', 'lock', "hiddenwin");
    }
    ?>
			  </td>
			</tr>
		<?php 
}
?>
	  </tbody>
	  <tfoot>
		<tr>
		  <td colspan='12'>
			<div class='table-actions clearfix'>
			  <?php 
if ($canBatchEdit or $canManageContacts) {
    echo "<div class='btn-group'>" . html::selectButton() . '</div>';
Example #14
0
  </div>
  <div class='actions'>
  <?php 
$browseLink = $this->session->buildList ? $this->session->buildList : $this->createLink('project', 'build', "projectID={$build->project}");
if (!$build->deleted) {
    echo "<div class='btn-group'>";
    if (common::hasPriv('build', 'linkStory')) {
        echo html::a(inlink('view', "buildID={$build->id}&type=story&link=true"), '<i class="icon-link"></i> ' . $lang->build->linkStory, '', "class='btn'");
    }
    if (common::hasPriv('build', 'linkBug')) {
        echo html::a(inlink('view', "buildID={$build->id}&type=bug&link=true"), '<i class="icon-bug"></i> ' . $lang->build->linkBug, '', "class='btn'");
    }
    echo '</div>';
    echo "<div class='btn-group'>";
    common::printIcon('build', 'edit', "buildID={$build->id}");
    common::printIcon('build', 'delete', "buildID={$build->id}", '', 'button', '', 'hiddenwin');
    echo '</div>';
}
echo common::printRPN($browseLink);
?>
  </div>
</div>
<div class='row-table'>
  <div class='col-main'>
    <div class='main'>
      <div class='tabs'>
      <?php 
$countStories = count($stories);
$countBugs = count($bugs);
$countNewBugs = count($generatedBugs);
?>
Example #15
0
        echo $bug->id;
        ?>
' /><?php 
    }
    ?>
        <?php 
    echo html::a($this->createLink('sprint', 'bugview', "bugID={$bug->id}"), sprintf('%03d', $bug->id));
    ?>
      </td>
      <td><span class='<?php 
    echo 'severity' . zget($lang->bug->severityList, $bug->severity, $bug->severity);
    ?>
'><?php 
    echo zget($lang->bug->severityList, $bug->severity, $bug->severity);
    ?>
</span></td>
      <td><span class='<?php 
    echo 'pri' . zget($lang->bug->priList, $bug->pri, $bug->pri);
    ?>
'><?php 
    echo zget($lang->bug->priList, $bug->pri, $bug->pri);
    ?>
</span></td>
      <td><?php 
    echo $lang->bug->typeList[$bug->type];
    ?>
</td>
      <td class='text-left nobr'><?php 
    echo html::a($this->createLink('bug', 'view', "bugID={$bug->id}"), $bug->title);
    ?>
</td>
Example #16
0
            ?>
          <td><?php 
            echo substr($bug->resolvedDate, 5, 11);
            ?>
</td>
          <?php 
        }
        ?>

          <td class='a-right'>
            <?php 
        $params = "bugID={$bug->id}";
        common::printIcon('bug', 'resolve', $params, $bug, 'list');
        common::printIcon('bug', 'close', $params, $bug, 'list');
        common::printIcon('bug', 'edit', $params, $bug, 'list');
        common::printIcon('bug', 'create', "product={$bug->product}&extra=bugID={$bug->id}", $bug, 'list', 'copy');
        ?>
          </td>
          <?php 
    }
    ?>
        </tr>
        <?php 
}
?>
        </tbody>
        <tfoot>
          <tr>
            <?php 
$columns = $this->cookie->windowWidth >= $this->config->wideSize ? 12 : 9;
?>
Example #17
0
  <ul class='nav'>
    <?php 
echo '<li id="today">' . html::a(inlink('effort', "projectID={$projectID}&date=today"), $lang->effort->todayEfforts) . '</li>';
echo '<li id="yesterday">' . html::a(inlink('effort', "projectID={$projectID}&date=yesterday"), $lang->effort->yesterdayEfforts) . '</li>';
echo '<li id="thisweek">' . html::a(inlink('effort', "projectID={$projectID}&date=thisweek"), $lang->effort->thisWeekEfforts) . '</li>';
echo '<li id="lastweek">' . html::a(inlink('effort', "projectID={$projectID}&date=lastweek"), $lang->effort->lastWeekEfforts) . '</li>';
echo '<li id="thismonth">' . html::a(inlink('effort', "projectID={$projectID}&date=thismonth"), $lang->effort->thisMonthEfforts) . '</li>';
echo '<li id="lastmonth">' . html::a(inlink('effort', "projectID={$projectID}&date=lastmonth"), $lang->effort->lastMonthEfforts) . '</li>';
echo '<li id="all">' . html::a(inlink('effort', "projectID={$projectID}&date=all"), $lang->effort->allDaysEfforts) . '</li>';
echo "<li id='{$today}'>" . html::input('date', $today, "class='form-date form-control' onchange=changeDate({$projectID},this.value)") . '</li>';
echo "<li id='account' class='w-150px'>" . html::select('account', $users, $account, "class='form-control chosen' onchange=changeUser({$projectID},'{$date}',this.value)") . '</li>';
?>
  </ul>
  <div class='actions'>
    <?php 
common::printIcon('effort', 'export', "account={$account}&orderBy=date_asc", '', 'button', '', '', 'export iframe');
?>
  </div>
</div>
<div class='c-both'></div>
<form method='post' action='<?php 
echo $this->createLink('effort', 'batchEdit', "from=browse&account=" . ($account == 'all' ? '' : $account));
?>
'>
<table class='table table-condensed table-hover table-striped tablesorter table-fixed'>
  <?php 
$vars = "projectID={$projectID}&date={$date}&account={$account}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";
?>
  <thead>
    <tr class='colhead'>
      <th class='w-id'>  <?php 
Example #18
0
    $s1 = explode('-', $tm[0]);
    $s2 = explode(':', $tm[1]);
    echo date('m-d  H:i', mktime($s2[0], $s2[1], $s2[2], $s1[1], $s1[2], $s1[0]));
    ?>
      </td>
     
    <?php 
}
?>
  </tbody>
  
  <tfoot>
  </tfoot>
  </table>
  <?php 
common::printIcon('mySprintBoard', 'create', "sprintID={$sprintID}", '', 'button', '', '', 'iframe', true, "id='mycreate'");
?>
</form>
</div>
</div>
</div>
<?php 
echo '<script>';
if ($recTotal == 0) {
    echo '$(\'#mycreate\').removeClass(\'mycreate\');';
    echo '$(\'#mycreate\').addClass(\'center\');';
} else {
    echo '$(\'#mycreate\').removeClass(\'center\');';
    echo '$(\'#mycreate\').addClass(\'mycreate\');';
}
echo '</script>';
Example #19
0
    echo "<div class='btn-group'>";
    common::printIcon('task', 'assignTo', "projectID={$task->project}&taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    common::printIcon('task', 'start', "taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    common::printIcon('task', 'restart', "taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    common::printIcon('task', 'recordEstimate', "taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    common::printIcon('task', 'pause', "taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    common::printIcon('task', 'finish', "taskID={$task->id}", $task, 'button', '', '', 'iframe showinonlybody text-success', true);
    common::printIcon('task', 'close', "taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    common::printIcon('task', 'activate', "taskID={$task->id}", $task, 'button', '', '', 'iframe text-success', true);
    common::printIcon('task', 'cancel', "taskID={$task->id}", $task, 'button', '', '', 'iframe', true);
    echo '</div>';
    echo "<div class='btn-group'>";
    common::printIcon('task', 'edit', "taskID={$task->id}");
    common::printCommentIcon('task');
    common::printIcon('task', 'create', "productID=0&storyID=0&moduleID=0&taskID={$task->id}", '', 'button', 'copy');
    common::printIcon('task', 'delete', "projectID={$task->project}&taskID={$task->id}", '', 'button', '', 'hiddenwin');
    echo '</div>';
    echo "<div class='btn-group'>";
    common::printRPN($browseLink, $preAndNext);
    echo '</div>';
    $actionLinks = ob_get_contents();
    ob_end_clean();
    echo $actionLinks;
} else {
    common::printRPN($browseLink);
}
?>
  </div>
</div>
<div class='row-table'>
  <div class='col-main'>
Example #20
0
   		<img src='<?php 
    echo $defaultTheme;
    ?>
images/main/green.png' width=<?php 
    echo $sprint->hours->progress;
    ?>
 height='13' text-align: />
      <small><?php 
    echo $sprint->hours->progress;
    ?>
%</small>
    </td>
	<td class='text-right'>
	<?php 
    if (common::hasPriv('pro', 'sprintedit')) {
        common::printIcon('pro', 'sprintedit', "id={$sprint->id}", '', 'list', 'pencil', '', 'iframe', true);
    }
    if (common::hasPriv('pro', 'delete')) {
        $deleteURL = $this->createLink('pro', 'delete', "projectID={$sprint->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"projectList\",confirmDelete)", '<i class="icon-remove"></i>', '', "class='btn-icon' title='{$lang->project->delete}'");
    }
    ?>
      </td>
	</td>
    <!-- <td class='projectline text-center' values='<?php 
    //echo join(',', $sprint->burns);
    ?>
'></td> -->
 </tr>
 <?php 
}
Example #21
0
    ?>
</span>
    <?php 
}
?>
  </div>
  <div class='actions'>
    <?php 
$params = "product={$product->id}";
$browseLink = $this->session->productList ? $this->session->productList : inlink('browse', "productID={$product->id}");
if (!$product->deleted) {
    ob_start();
    common::printIcon('product', 'close', "productID={$product->id}", $product, 'button', '', '', 'iframe text-danger', true);
    echo "<div class='btn-group'>";
    common::printIcon('product', 'edit', $params);
    common::printIcon('product', 'delete', $params, '', 'button', '', 'hiddenwin');
    echo '</div>';
    common::printRPN($browseLink);
    $actionLinks = ob_get_contents();
    ob_end_clean();
    echo $actionLinks;
} else {
    common::printRPN($browseLink);
}
?>
  </div>
</div>
<div class='row-table'>
  <div class='col-main'>
    <div class='main'>
      <fieldset>
        echo $estimate->consumed;
        ?>
</td>
        <td><?php 
        echo $estimate->left;
        ?>
</td>
        <td class="text-left"><?php 
        echo $estimate->work;
        ?>
</td>
        <td align='center'>
          <?php 
        if ($task->status == 'wait' or $task->status == 'pause' or $task->status == 'doing') {
            common::printIcon('task', 'editEstimate', "estimateID={$estimate->id}", '', 'list', 'pencil', '', 'showinonlybody', true);
            common::printIcon('task', 'deleteEstimate', "estimateID={$estimate->id}", '', 'list', 'remove', 'hiddenwin', 'showinonlybody');
        }
        ?>
        </td>
      </tr>
      <?php 
    }
    ?>
      <?php 
}
?>
      <?php 
if ($task->status == 'wait' or $task->status == 'pause' or $task->status == 'doing') {
    ?>
      <thead>
        <tr class='text-center'>
Example #23
0
            echo $lang->testcase->resultList[$case->lastRunResult];
        }
        ?>
</td>
              <td><?php 
        echo $lang->testcase->statusList[$case->status];
        ?>
</td>
              <td class='a-right'>
                <?php 
        common::printLink('testtask', 'runCase', "runID=0&caseID={$case->id}&version={$case->version}", $this->app->loadLang('testtask')->testtask->runCase, '', 'class="runcase"');
        common::printLink('testtask', 'results', "runID=0&caseID={$case->id}", $lang->testtask->results, '', 'class="results"');
        common::printIcon('testcase', 'edit', "caseID={$case->id}", $case, 'list');
        common::printIcon('testcase', 'create', "productID={$case->product}&moduleID={$case->module}&from=testcase&param={$case->id}", $case, 'list', 'copy');
        common::printIcon('testcase', 'delete', "caseID={$case->id}", '', 'list', '', 'hiddenwin');
        common::printIcon('testcase', 'createBug', "product={$case->product}&extra=caseID={$case->id},version={$case->version},runID=", $case, 'list', 'createBug');
        ?>
              </td>
              <?php 
    }
    ?>
            </tr>
          <?php 
}
?>
          </thead>
          <tfoot><tr><td colspan='10'><?php 
$pager->show();
?>
</td></tr></tfoot>
        </table>
Example #24
0
'><?php 
    echo $lang->story->statusList[$story->status];
    ?>
</td>
        <td><?php 
    echo $lang->story->stageList[$story->stage];
    ?>
</td>
        <td class='text-right'>
          <?php 
    $vars = "story={$story->id}";
    common::printIcon('story', 'change', $vars, $story, 'list', 'random');
    common::printIcon('story', 'review', $vars, $story, 'list', 'search');
    common::printIcon('story', 'close', $vars, $story, 'list', 'off');
    common::printIcon('story', 'edit', $vars, $story, 'list', 'pencil');
    common::printIcon('story', 'createCase', "productID={$story->product}&module=0&from=&param=0&{$vars}", $story, 'list', 'sitemap');
    ?>
        </td>
      </tr>
      <?php 
}
?>
      </tbody>
      <tfoot>
      <tr>
        <td colspan='11'>
          <div class='table-actions clearfix'>
            <?php 
if (count($stories)) {
    ?>
            <div class='btn-group'><?php 
echo '</span>';
echo "<span id='delayedTab'>";
common::printLink('project', 'task', "project={$project->id}&type=delayed", $lang->project->delayed);
echo '</span>';
echo "<span id='groupTab'>";
echo html::select('groupBy', $lang->project->groups, isset($groupBy) ? $groupBy : '', "onchange='switchGroup({$project->id}, this.value)'");
echo "</span>";
echo "<span id='needconfirmTab'>";
common::printLink('project', 'task', "project={$project->id}&status=needConfirm", $lang->project->listTaskNeedConfrim);
echo '</span>';
echo "<span id='bysearchTab'><a href='#'><span class='icon-search'></span>{$lang->project->byQuery}</a></span> ";
?>
  </div>
  <div class='f-right'>
      <span class="link-button">
        <a href="/index.php?m=task&amp;f=reportToMail&amp;project=<?php 
echo $projectID;
?>
" target="_blank" class="">今日报表发送</a>
      </span>
    <?php 
if ($browseType != 'needconfirm') {
    common::printIcon('task', 'export', "projectID={$projectID}&orderBy={$orderBy}");
}
common::printIcon('task', 'report', "project={$project->id}&browseType={$browseType}");
common::printIcon('task', 'batchCreate', "projectID={$project->id}");
common::printIcon('task', 'create', "project={$project->id}");
?>
  </div>
</div>
Example #26
0
        }
        ?>
</td>
      <td class=<?php 
        echo $task->status;
        ?>
 ><?php 
        echo $lang->task->statusList[$task->status];
        ?>
</td>
      <td>
        <?php 
        common::printIcon('task', 'edit', "taskid={$task->id}", '', 'list');
        ?>
        <?php 
        common::printIcon('task', 'delete', "projectID={$task->project}&taskid={$task->id}", '', 'list', '', 'hiddenwin');
        ?>
      </td>
    </tr>
    <?php 
    }
    ?>
    <tr class='child-of-node-<?php 
    echo $groupKey;
    ?>
 <?php 
    echo $groupClass;
    ?>
'>
      <td colspan='12' class='a-right groupdivider'>
        <?php 
Example #27
0
    echo $task->begin;
    ?>
</td>
    <td><?php 
    echo $task->end;
    ?>
</td>
    <td><?php 
    echo $lang->testtask->statusList[$task->status];
    ?>
</td>
    <td class='text-right'>
      <?php 
    common::printIcon('testtask', 'cases', "taskID={$task->id}", 'play', 'list', 'smile');
    common::printIcon('testtask', 'linkCase', "taskID={$task->id}", '', 'list', 'link');
    common::printIcon('testtask', 'edit', "taskID={$task->id}", '', 'list');
    if (common::hasPriv('testtask', 'delete')) {
        $deleteURL = $this->createLink('testtask', 'delete', "taskID={$task->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"taskList\",confirmDelete)", '<i class="icon-remove"></i>', '', "title='{$lang->testtask->delete}' class='btn-icon'");
    }
    ?>
    </td>
  </tr>
  <?php 
}
?>
  </tbody>
  <tfoot><tr><td colspan='8'><?php 
$pager->show();
?>
</td></tr></tfoot>
Example #28
0
</td>
      <td><?php 
    echo $todo->end;
    ?>
</td>
      <td class='<?php 
    echo $todo->status;
    ?>
'><?php 
    echo $lang->todo->statusList[$todo->status];
    ?>
</td>
      <td class='text-right'>
        <?php 
    common::printIcon('todo', 'finish', "id={$todo->id}", $todo, 'list', 'ok-sign', 'hiddenwin');
    common::printIcon('todo', 'edit', "id={$todo->id}", '', 'list', 'pencil', '', 'iframe', true);
    if (common::hasPriv('todo', 'delete')) {
        $deleteURL = $this->createLink('todo', 'delete', "todoID={$todo->id}&confirm=yes");
        echo html::a("javascript:ajaxDelete(\"{$deleteURL}\",\"todoList\",confirmDelete)", '<i class="icon-remove"></i>', '', "class='btn-icon' title='{$lang->todo->delete}'");
    }
    ?>
      </td>
    </tr>
    <?php 
}
?>
    </tbody>
    <?php 
if (count($todos)) {
    ?>
    <tfoot>
Example #29
0
          <td><?php 
    echo date('Y-m-d', $user->last);
    ?>
</td>
          <td><?php 
    echo $user->visits;
    ?>
</td>
          <td class='a-left'>
            <?php 
    common::printIcon('user', 'edit', "userID={$user->id}&from=company", '', 'list');
    if (strpos($this->app->company->admins, ",{$user->account},") === false) {
        common::printIcon('user', 'delete', "userID={$user->id}", '', 'list', '', "hiddenwin");
    }
    if (strtotime(date('Y-m-d H:i:s')) - strtotime($user->locked) < $this->config->user->lockMinutes * 60) {
        common::printIcon('user', 'unlock', "userID={$user->account}", '', 'list', '', "hiddenwin");
    }
    ?>
          </td>
        </tr>
        <?php 
}
?>
        </tbody>
        <tfoot>
        <tr>
          <td colspan='12'>
          <?php 
if ($canBatchEdit or $canManageContacts) {
    echo html::selectAll() . html::selectReverse();
}
Example #30
0
echo $lang->product->searchStory;
?>
</a></span>
  </div>
  <div class='f-right'>
    <?php 
common::printIcon('story', 'report', "productID={$productID}&browseType={$browseType}&moduleID={$moduleID}");
?>
    <?php 
common::printIcon('story', 'export', "productID={$productID}&orderBy={$orderBy}");
?>
    <?php 
common::printIcon('story', 'batchCreate', "productID={$productID}&moduleID={$moduleID}");
?>
    <?php 
common::printIcon('story', 'create', "productID={$productID}&moduleID={$moduleID}");
?>
  </div>
</div>
<div id='querybox' class='<?php 
if ($browseType != 'bysearch') {
    echo 'hidden';
}
?>
'></div>
<form method='post' id='productStoryForm'>
  <table class='cont-lt1'>
    <tr valign='top'>
      <td class='side <?php 
echo $treeClass;
?>