コード例 #1
0
ファイル: file.php プロジェクト: n2i/xvnkb
    echo $obj->task_id;
    ?>
">
<input type="hidden" name="file" value="">
<table border="0" cellpadding="4" cellspacing="2">
	<tr>
		<td align="right">File</td>
		<td>
			<span id="idFileName"></span>
			<input id="idFile" type="file" name="taskfile" class="text" size="45"/>
		</td>
	</tr>
	<tr>
		<td align="right">Version</td>
		<td><?php 
    echo createSpinBox('file_version', '1.0', 0, 10, '', 0.1);
    ?>
</td>
	</tr>
	<tr>
		<td valign="top">Description</td>
		<td><textarea id="idFileDesc" name="file_description" style="width: 300px; height: 100px"></textarea></td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<input type="submit" value="Save"/>&nbsp;
			<input type="button" value="Cancel" onclick="Dialog('idNewFile').hide()"/>
		</td>
	</tr>
</table>
</form>
コード例 #2
0
ファイル: simpleaddedit.php プロジェクト: n2i/xvnkb
}
?>
			</table>
		</div>
	</td>
	<td colspan="2">&nbsp;</td>
	<td colspan="5">
		<div class='text' style="width: 240px; height: 150px; overflow: auto">
			<table border="0" cellspacing="2" cellpadding="0" width="92%">
			<?php 
$mlist = '';
$alist = '';
foreach ($users as $id => $u) {
    $active = isset($members[$id]);
    $cid = 'idMCB' . $id;
    $data = '<tr style="border-bottom: 1px solid grey">' . '<td width="18px">' . '<input id="' . $cid . '" type="checkbox" name="task_members[]" value="' . $id . '" ' . 'onclick="selectItem(this, 1)" ' . ($active ? 'checked' : '') . '/>' . '</td>' . '<td nowrap="nowrap" width="100%"><label for="' . $cid . '">' . $u['contact_first_name'] . ' ' . $u['contact_last_name'] . '</label></td><td>' . createSpinBox('contribute_' . $id, $active ? $members[$id]['perc_assignment'] : 0, 0, 100, '%', 5, !$active) . '</td></tr>';
    if ($active) {
        $mlist .= $data;
    } else {
        $alist .= $data;
    }
}
echo $mlist . $alist;
?>
			</table>
		</div>
	</td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td>
コード例 #3
0
ファイル: ui.class.php プロジェクト: n2i/xvnkb
/**
 * Display spin editor box
 */
function showSpinBox($name, $value, $minval, $maxval, $unit = '', $step = 1, $disabled = false, $size = 20)
{
    echo createSpinBox($name, $value, $minval, $maxval, $unit, $step, $disabled, $size);
}