本文整理汇总了PHP中select::print_link方法的典型用法代码示例。如果您正苦于以下问题:PHP select::print_link方法的具体用法?PHP select::print_link怎么用?PHP select::print_link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类select
的用法示例。
在下文中一共展示了select::print_link方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: select
</tr>
</table>
<br/>
<?php
echo '<form name="template" method="post" action="' . $_SERVER['PHP_SELF'] . '" />';
echo '<input type="hidden" name="mode" value="' . $mode . '" />';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="close" value="false" />';
//echo '<input type="hidden" name="receipient" value="'.$receipient_id.'" />';
switch ($mode) {
case 'send':
if (isset($feedback)) {
echo "<b>{$feedback}</b></br>";
}
$select = new select('user', 'template', 'receipient', $receipient_id);
$select->print_link('Send to');
echo ': ';
$select->print_field();
echo '<br/>';
echo '<br/>';
echo 'Message:';
echo '<br/>';
echo '<textarea cols="70" rows="4" class="textbox" name="message"></textarea>';
echo '<br/>';
echo '<br/>';
$button = new button();
echo $button->get_button('Send', "document.forms[0].task.value='send';document.forms[0].submit();");
break;
case 'messages':
echo '<br/>';
echo '<br/>';
示例2: htmlspecialchars
if ($todo['res_user_id'] > 0 && ($user = $GO_USERS->get_user($todo['res_user_id']))) {
$middle_name = $user['middle_name'] == '' ? '' : $user['middle_name'] . ' ';
$user_name = htmlspecialchars($user['last_name'] . ' ' . $middle_name . $user['first_name']);
} else {
$user_name = isset($_REQUEST['user_name']) ? htmlspecialchars(smartstrip($_REQUEST['user_name'])) : '';
}
$select = new select('user', 'todo_form', 'res_user_id', $todo['res_user_id']);
echo '<tr><td>';
$select->print_link($cal_responsible);
echo ':</td><td>';
$select->print_field();
echo '</td></tr>';
if ($ab_module) {
$select = new select('contact', 'todo_form', 'contact_id', $todo['contact_id']);
echo '<tr><td>';
$select->print_link($sc_client);
echo ':</td><td>';
$select->print_field();
echo '</td></tr>';
} else {
echo '<input type="hidden" value="0" name="contact_id" />';
}
echo '<tr><td>' . $sc_location . ':</td>' . '<td><input type="text" class="textbox" style="width: 300px;"' . 'name="location" value="' . htmlspecialchars($todo['location']) . '" /></td></tr>' . '<tr><td valign="top">' . $sc_description . ': </td><td>' . '<textarea class="textbox" name="description" cols="60" rows="4">' . htmlspecialchars($todo['description']) . '</textarea></td></tr>' . '<tr><td colspan="2"> </td></tr>';
echo '<tr><td>' . $cal_priority . ':</td><td>';
$dropbox = new dropbox();
$dropbox->add_value('0', $cal_priority_values[0]);
$dropbox->add_value('1', $cal_priority_values[1]);
$dropbox->add_value('2', $cal_priority_values[2]);
$dropbox->print_dropbox('priority', $todo['priority']);
echo '</td></tr>';
echo '<tr><td>' . $sc_start_at . ': </td><td>';
示例3: dropbox
$dropbox = new dropbox();
$dropbox->add_value('', $no_none);
while ($notes->next_record()) {
$dropbox->add_value($notes->f('id'), $notes->f('name'));
}
$dropbox->print_dropbox('catagory_id', $catagory_id);
echo '</td><tr>';
} else {
echo '<input type="hidden" name="catagory_id" value="0" />';
}
echo '<tr><td>' . $no_due_date . ':</td><td>';
$datepicker->print_date_picker('due_date', $_SESSION['GO_SESSION']['date_format'], $due_date);
echo '</td></tr>';
$select = new select('user', 'notes_form', 'responsible_user_id', $responsible_user_id);
echo '<tr><td>';
$select->print_link($no_responsible);
echo ':</td><td>';
$select->print_field();
echo '</td></tr>';
?>
</table>
</td>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="4">
<?php
echo '<tr><td>' . $strOwner . ':</td><td>' . show_profile($user_id, '', 'normal', $link_back) . '</td></tr>';
echo '<tr><td>' . $strCreatedAt . ':</td><td>' . $ctime . '</td><tr>';
echo '<tr><td>' . $strModifiedAt . ':</td><td>' . $mtime . '</td><tr>';
if ($project_id > 0) {
$projects = new projects();
if ($project = $projects->get_project($project_id)) {
示例4: select
$today = get_today();
} else {
$today = db_date_to_date($order['valid_date']);
}
$datepicker->print_date_picker('valid_date', $_SESSION['GO_SESSION']['date_format'], $today);
?>
</td>
</tr>
<tr>
<td>
<?php
if (empty($order['seller'])) {
$order['seller'] = $GO_SECURITY->user_id;
}
$select = new select('user', 'frmOrder', 'seller', $order['seller']);
$select->print_link($sc_employee);
?>
</td>
<td><?php
$select->print_field();
?>
</td>
</tr>
<tr>
<td><?php
echo $sc_order_number;
?>
</td>
<td><input type="text" class="textbox" name="order_number" value="<?php
echo $order['order_number'];
?>
示例5: select
$pm_status_values[STATUS_BEGIN] = $pm_status_begin;
if ($project_id < 1 || $project['user_id'] == $GO_SECURITY->user_id) {
if ($ab_module) {
$select = new select('contact', 'projects_form', 'contact_id', $contact_id);
echo '<tr><td>';
$select->print_link($pm_client);
echo ':</td><td>';
$select->print_field();
echo '</td></tr>';
} else {
echo '<input type="hidden" value="0" name="contact_id" />';
echo $pm_no_contact;
}
$select = new select('user', 'projects_form', 'responsible_user_id', $responsible_user_id);
echo '<tr><td>';
$select->print_link($pm_employee);
echo ':</td><td>';
$select->print_field();
echo '</td></tr>';
echo '<tr><td>' . $pm_start_date . ':</td><td>';
$datepicker->print_date_picker('start_date', $_SESSION['GO_SESSION']['date_format'], $start_date, '', '', 'onchange="javascript:is_valid_date(\'end_date\', this.value)"');
echo '</td></tr>';
echo '<tr><td>' . $pm_end_date . ':</td><td>';
$datepicker->print_date_picker('end_date', $_SESSION['GO_SESSION']['date_format'], $end_date, '', '', 'onchange="javascript:is_valid_date(\'start_date\', this.value)"');
echo '</td></tr>';
if ($project_id > 0) {
$pstate = $projects->f('status');
echo '<tr><td>' . $pm_status . ':</td><td><b>' . $pm_status_values[$pstate] . '</b></td></tr>';
echo '<tr><td>' . $pm_progress . ':</td><td>' . $progress . '%</td></tr>';
}
echo '<tr><td>' . $pm_budget . ':</td><td><input type="text" class="textbox" size="10" name="budget" value="' . $budget . '" maxlength="50" style="text-align: right;" /> ' . $_SESSION['GO_SESSION']['currency'] . '</td></tr>';