示例#1
0
        // time spent
        echo '<td>';
        echo '<a href="' . $this->fc->getUrl('timer', 'delete', $params) . '" class="onhold ajax confirm" rel="tab2">' . TR::html('button', 'delete') . '</a>';
        echo $this->data->getTimeSpent();
        echo '</td>';
        echo '</tr>';
    } while ($this->data->next());
    ?>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="2"><?php 
    TR::phtml('ui', 'total');
    ?>
</td>
			<td><?php 
    echo TaskSummary::htmlTime($total);
    ?>
</td>
		</tr>
	</tfoot>
</table>
<?php 
} else {
    echo '<p class="empty">' . TR::html('ui', 'history_empty') . '</p>';
}
?>
<p class="empty"><a href="#tab3" onclick="tabber.show(3); return false;"><?php 
TR::phtml('ui', 'report_spent');
?>
</a></p>
示例#2
0
			</p>
		</form>
	</div>
	<div id="dlist" class="users">
	<?php 
if ($this->data->count()) {
    ?>
	<table>
	<thead>
		<tr>
			<th><?php 
    TR::phtml('form', 'name');
    ?>
</th>
			<th><?php 
    TR::phtml('form', 'last_visit_date');
    ?>
</th>
		</tr>
	</thead>
	<tbody>
	<?php 
    while ($this->data->next()) {
        $id = $this->data->getUid();
        echo '<tr>';
        echo '<td>';
        echo '<a href="' . $this->fc->getUrl('admin', 'edit', array('id' => $id)) . '" class="onhold ajax box" title="' . TR::html('button', 'edit') . '">' . TR::html('button', 'edit') . '</a>';
        echo $this->data->html('nickname');
        if ($tmp = $this->data->htmlRights()) {
            echo ' <small>' . $tmp . '</small>';
        }
示例#3
0
				<tr>
					<th><?php 
TR::phtml('form', 'status');
?>
</th>
					<td><?php 
echo $this->data->htmlStatus();
?>
</td>
				</tr>
				<?php 
if (!$this->data->isEmpty('note')) {
    ?>
				<tr>
					<th><?php 
    TR::phtml('task', 'note');
    ?>
</th>
					<td><?php 
    echo $this->data->html('note');
    ?>
</td>
				</tr>
				<?php 
}
?>
			</tbody>
		</table>
	</div>
	<div id="tab2" class="tab">
		<?php 
示例#4
0
		<li class="arrow"><a href="#list-st0"><?php 
TR::phtml('pages', 'todo');
?>
</a><small class="counter"><?php 
echo $this->dataTodo->count();
?>
</small></li>
		<li class="arrow"><a href="#list-st1"><?php 
TR::phtml('pages', 'done');
?>
</a><small class="counter"><?php 
echo $this->dataDone->count();
?>
</small></li>
		<li class="arrow"><a href="#list-st2"><?php 
TR::phtml('pages', 'valid');
?>
</a><small class="counter"><?php 
echo $this->dataValid->count();
?>
</small></li>
	</ul>
	<?php 
/*
if (count($this->dataTags)) {
?>
<h2>By Tag</h2>
<ul class="rounded">
<?php
	foreach ($this->dataTags as $row) {
		$tag = trim($row['tag']);
示例#5
0
			<small id="dv_priority">...</small>
		</li>
		<li class="arrow">
			<small id="dv_spent">...</small>
			<a href="#details-spent">Time spent</a>
		</li>
	</ul>
	<p>
		<input id="dv_id" type="hidden" name="id" value="" />
		<input id="dv_action" type="hidden" name="action" value="" />
		<span id="dv_stop" class="hide"><a href="#" class="react darkButton"><?php 
TR::phtml('button', 'stop');
?>
</a></span>
		<span id="dv_start" class="hide"><a href="#" class="react lightButton"><?php 
TR::phtml('button', 'start');
?>
</a></span>
	</p>
	<?php 
$this->incView('iphone/inc_foot');
?>
</form>
<div id="details-spent">
	<div class="toolbar">
		<h1>Task timesheet</h1>
		<a href="#" class="back">Back</a>
		<!-- a href="" class="button slideup">+</a -->
	</div>
	<ul class="rounded">
	</ul>
示例#6
0
		</ul>
	</li>
	<?php 
}
?>
	<li class="buttons">
		<button type="submit" name="save" value="1" class="save"><?php 
TR::phtml('button', 'save');
?>
</button>
		<?php 
if ($this->canDeleteThisUser) {
    ?>
		<a href="<?php 
    echo $this->fc->getUrl('admin', 'delete', array('id' => $this->data->getUid()));
    ?>
"
			onclick="return confirm('<?php 
    TR::phtml('data', 'delete_confirm');
    ?>
');" class="button marge delete"><?php 
    TR::phtml('button', 'delete');
    ?>
</a>
		<?php 
}
?>
	</li>
</ol>
<?php 
$this->incView('include/page-bot', false);
示例#7
0
		<span id="dtimer"><?php 
    echo $this->current->getRealSpent();
    ?>
</span>
		<?php 
    echo $this->current->html('title');
    ?>
	</p>
<?php 
} else {
    ?>
	<div id="timerstatus">
		<button type="submit" id="b_save" name="save" value="1" tabindex="2"><?php 
    TR::phtml('button', 'save');
    ?>
</button>
		<button type="submit" id="b_start" name="start" value="1" tabindex="3"><?php 
    TR::phtml('button', 'save_and_start');
    ?>
</button>
	</div>
	<p>
		<input type="text" name="title" value="" tabindex="1" />
	</p>
<?php 
}
if (isset($this->jsCode)) {
    echo '<script type="text/javascript">';
    echo $this->jsCode;
    echo '</script>';
}
示例#8
0
    echo $this->fc->controller;
    ?>
" />
				<input type="hidden" name="a" value="<?php 
    echo $this->fc->action;
    ?>
" />
				<?php 
}
?>
				<input type="text" name="search" value="<?php 
echo $this->search;
?>
" tabindex="4" />
				<button id="b_submit" type="submit" name="go" value="1"><?php 
TR::phtml('data', 'search');
?>
</button>
				<button id="b_clear" type="button" onclick="this.form.elements['search'].value='';this.form.submit()">x</button>
			</p>
		</form>
	</div>
	<div id="dlist" class="tasks">
	<?php 
if ($this->expand) {
    $this->incView('include/list-expand');
} else {
    $this->incView('include/list-compact');
}
?>
	</div>
示例#9
0
		<?php 
echo $this->data->iSelectTranslate('status', 'task');
?>
	</li>
	<li class="inline">
		<?php 
echo $this->data->iCheckBox('archived');
?>
		<label for="i_archived"><?php 
TR::phtml('ui', 'mark_archived');
?>
</label>
	</li>
	<li class="nline buttons">
		<button type="submit" name="save" value="1" class="save"><?php 
TR::phtml('button', 'save_task');
?>
</button>
	</li>
</ol>
<script type="text/javascript" src="<?php 
echo APP_WWW_URI . 'asset/js/jquery.jdpicker.js';
?>
"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#f_task_edit').submit(function() {
	  if ($.trim($('#i_title').val())) {
	  	return true;
	  } else {
	  	$('#f_title').addClass('error');
示例#10
0
" value="" /></li>
		<li><textarea id="i_note" type="text" name="note" placeholder="<?php 
TR::phtml('task', 'note');
?>
"></textarea></li>
	</ul>
	<ul class="edit rounded">
		<li><input id="i_deadline" type="number" name="deadline" placeholder="<?php 
TR::phtml('form', 'deadline');
?>
" value="" /></li>
		<li><?php 
echo $this->edit->iSelectTranslate('priority', 'priority');
?>
</li>
		<li><?php 
echo $this->edit->iSelectTranslate('status', 'task');
?>
</li>
	</ul>
	<p>
		<input type="hidden" id="i_id" name="id" value="" />
		<a href="#" class="save lightButton"><?php 
TR::phtml('button', 'save');
?>
</a>
	</p>
	<?php 
$this->incView('iphone/inc_foot');
?>
</form>
示例#11
0
		<li>
			<label for="i_username"><?php 
TR::phtml('form', 'username');
?>
</label>
			<input id="i_username" type="text" name="username" value="<?php 
echo $this->fc->user->value('username');
?>
" />
		</li>
		<li>
			<label for="i_password"><?php 
TR::phtml('form', 'password');
?>
</label>
			<input id="i_password" type="password" name="password" value="" />
		</li>
		<li class="buttons">
			<button type="submit" name="login" value="1" class="submit"><?php 
TR::phtml('button', 'login');
?>
</button>
		</li>
	</ol>
</form>
<?php 
if ($GLOBALS['config']['log_debug'] == 2) {
    $this->fc->user->htmlAllErrors();
    echo $this->fc->user;
}
$this->incView('include/page-bot', false);
示例#12
0
<?php

$this->incView('include/page-top', false);
?>
<h1><?php 
TR::phtml('ui', 'select_user');
?>
</h1>
<ul>
<?php 
while ($this->data->next()) {
    echo '<li>';
    if ($this->data->getUid() == $this->switch_id) {
        echo $this->data->html('nickname');
    } else {
        echo '<a href="' . $this->fc->getUrl('admin', 'switch', array('id' => $this->data->getUid())) . '">' . $this->data->html('nickname') . '</a>';
    }
    echo '</li>';
}
?>
</ul>
<?php 
$this->incView('include/page-bot', false);
示例#13
0
    ?>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="3">
				<a href="javascript:checkAll('f_tasks')"><?php 
    TR::phtml('ui', 'select_all');
    ?>
</a> |
				<?php 
    foreach ($this->actions as $key => $label) {
        echo ' <button type="submit" name="' . $key . '" ' . 'value="1">' . TR::html('button', $label) . '</button>';
    }
    ?>
			</td>
			<td colspan="2"><?php 
    TR::phtml('ui', 'total');
    ?>
</td>
			<td><?php 
    echo TaskSummary::htmlTime($total);
    ?>
</td>
		</tr>
	</tfoot>
</table>
</form>
<?php 
} else {
    echo '<p class="empty">' . TR::html('error', 'search_empty') . '</p>';
}
示例#14
0
    ?>
')"><?php 
    TR::phtml('button', 'done');
    ?>
</a></span>
	</p>
	<?php 
} else {
    // task is paused (requested from ajax only)
    ?>
	<p class="dual">
		<span><a id="b_resume" href="#resume" class="lightButton action"><?php 
    TR::phtml('button', 'resume');
    ?>
</a></span>
		<span><a id="b_stop" href="#stop" class="darkButton action"><?php 
    TR::phtml('button', 'stop');
    ?>
</a></span>
	</p>
	<?php 
}
?>
	<script type="text/javascript">
	jQuery(function () {
		$(".action").tap(function (e) {
  			return app.taskAction(this);
		});
	});
	</script>
</form>
示例#15
0
	<li>
		<label><?php 
TR::phtml('form', 'stop');
?>
</label>
		<input type="text" id="i_stop_time" name="stop_time" class="time" />
	</li>
	<li class="nline">
		<label><?php 
TR::phtml('task', 'spent');
?>
</label>
		<input type="text" id="i_spent" name="spent" class="duration" value="00:00" />
	</li>
	<li class="nline buttons">
		<button type="submit" name="save" value="1" class="save"><?php 
TR::phtml('button', 'save_report');
?>
</button>
		<a href="javascript:document.task_timer.reset()"><?php 
TR::phtml('button', 'reset');
?>
</a>
	</li>
</ol>
<hr class="clear" />
<div class="help">
	<?php 
$this->fc->loadLangFile('help_timer_creation.php');
?>
</div>