本文整理汇总了PHP中dropbox::add_value方法的典型用法代码示例。如果您正苦于以下问题:PHP dropbox::add_value方法的具体用法?PHP dropbox::add_value怎么用?PHP dropbox::add_value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dropbox
的用法示例。
在下文中一共展示了dropbox::add_value方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dropbox
$ab_settings['sort_contacts_order'] = $_REQUEST['new_sort_order'];
$ab_settings['sort_contacts_field'] = $_REQUEST['new_sort_field'];
}
if ($ab_settings['sort_contacts_order'] == "DESC") {
$image_string = ' <img src="' . $GO_THEME->images['arrow_down'] . '" border="0" />';
$new_sort_order = "ASC";
} else {
$image_string = ' <img src="' . $GO_THEME->images['arrow_up'] . '" border="0" />';
$new_sort_order = "DESC";
}
echo '<input type="hidden" value="' . $new_sort_order . '" name="new_sort_order" />';
if ($ab1->get_subscribed_addressbooks($GO_SECURITY->user_id) > 1) {
echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>' . $ab_addressbook . ':</td><td>';
$subscribed_addressbooks = new dropbox();
while ($ab1->next_record()) {
$subscribed_addressbooks->add_value($ab1->f('id'), $ab1->f('name'));
}
$subscribed_addressbooks->print_dropbox('addressbook_id', $addressbook_id, 'onchange="javascript:change_addressbook()"');
echo '</td></tr></table>';
} else {
echo '<input type="hidden" name="addressbook_id" value="' . $addressbook_id . '" />';
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
echo '<tr><td class="TableHead2"> </td>';
if ($multiselect) {
echo '<td class="TableHead2" width="16"><input type="checkbox" name="dummy" value="dummy" onclick="javascript:invert_selection()" /></td>';
}
echo "<td class=\"TableHead2\" nowrap><a class=\"TableHead2\" href=\"javascript:sort('name')\">" . $strName;
if ($ab_settings['sort_contacts_field'] == "name") {
echo $image_string;
}
示例2: rawurlencode
$subscribed[] = $db->f('calendar_id');
}
}
$tabtable = new tabtable('calendar', $sc_calendars, '100%', '400', '120', '', true);
require $GO_THEME->theme_path . 'header.inc';
echo '<form name="events" method="post" action="' . $_SERVER['PHP_SELF'] . '">';
echo '<input type="hidden" name="calendar_id" value="' . $calendar_id . '" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="delete_calendar_id" value="" />';
echo '<input type="hidden" name="task" value="' . $task . '" />';
echo '<input type="hidden" name="close_action" value="false" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
//echo '<input type="hidden" name="view_type" value="'.$view_type.'" />';
$dropbox = new dropbox();
$dropbox->add_value(0, $cmdShowAll);
$dropbox->add_value(1, $cmdShowOwned);
$dropbox->add_value(2, $cmdShowSubscribed);
$tabtable->print_head();
?>
<table border="0" cellpadding="10">
<tr>
<td>
<table border="0" cellpadding="3" cellspacing="0">
<tr><td colspan="1" height="25">
<a href="calendar.php?return_to=<?php
echo rawurlencode($link_back);
?>
" class="normal"><?php
echo $cmdAdd;
?>
示例3: dropbox
echo '<input type="hidden" name="user" value="' . $user . '" />';
echo '<input type="hidden" name="pass" value="' . $pass . '" />';
} else {
?>
<tr><td colspan="2"> </td></tr>
<tr>
<td><?php
echo $ml_type;
?>
:</td>
<td>
<table border=0><tr><td>
<?php
$dropbox = new dropbox();
$dropbox->add_value('pop3', 'POP3');
$dropbox->add_value('imap', 'IMAP');
$dropbox->print_dropbox('type', $type, 'onchange="javascript:change_port()"');
?>
</td><td>
<?php
$checkbox = new checkbox('use_ssl', '1', 'SSL', $use_ssl, false, 'onclick="javascript:change_port()"');
?>
</td><td>
<?php
$checkbox = new checkbox('novalidate_cert', '1', $ml_novalidate_cert, $novalidate_cert);
?>
</td></tr></table>
</td>
</tr>
示例4: dropbox
echo '<table border="0" cellpadding="0" cellspacing="0"><tr><td>';
$disabled = $todo['completed'] ? '' : 'disabled';
$status_disabled = $todo['completed'] ? 'disabled' : '';
$datepicker->print_date_picker('completion_date', $_SESSION['GO_SESSION']['date_format'], $todo['completion_date'], '', '', '', !$todo['completed']);
echo '</td><td> ';
$dropbox = new dropbox();
$dropbox->add_arrays($hours, $hours);
$dropbox->print_dropbox("completion_hour", $todo['completion_hour'], $disabled);
echo ' : ';
$dropbox = new dropbox();
$dropbox->add_arrays($mins, $mins);
$dropbox->print_dropbox("completion_min", $todo['completion_min'], $disabled);
echo ' ';
$dropbox = new dropbox();
for ($i = 0; $i < 101; $i = $i + 10) {
$dropbox->add_value($i, "{$i}");
}
$dropbox->print_dropbox('status', $todo['status'], $status_disabled);
echo ' ';
echo $cal_percent_completed;
echo '</td></tr></table>';
echo '<tr><td colspan="2"> </td></tr>';
echo '<tr><td nowrap>' . $sc_background . ': </td><td>';
$color_selector = new color_selector();
$color_selector->add_color('FFFFCC');
$color_selector->add_color('FF6666');
$color_selector->add_color('CCFFCC');
$color_selector->add_color('99CCFF');
$color_selector->add_color('FF99FF');
$color_selector->add_color('FFCC66');
$color_selector->add_color('CCCC66');
示例5: date
<tr>
<td><b><?php
echo $strDate;
?>
: </b></td>
<td><?php
echo date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], get_time($content['udate']));
?>
</td>
</tr>
<?php
if ($account['type'] == "imap" && !$print) {
echo '<tr><td nowrap><b>' . $ml_folder . ': </b></td><td>';
if ($email->get_all_folders($account['id'], true) > 0) {
$dropbox = new dropbox();
$dropbox->add_value('INBOX', $ml_inbox);
while ($email->next_record()) {
if (!($email->f('attributes') & LATT_NOSELECT)) {
$dropbox->add_value($email->f('name'), str_replace('INBOX' . $email->f('delimiter'), '', $email->f('name')));
}
}
$dropbox->print_dropbox('move_to_mailbox', $mailbox, 'onchange="javascript:move_mail()"');
}
}
echo '</td></tr>';
?>
</table>
</td>
</tr>
</table>
</td>
示例6: dropbox
?>
</td>
</tr>
<tr>
<td nowrap>
<?php
echo $pref_first_weekday;
?>
:
</td>
<td>
<?php
//create an xml object because the date formats are stored as a setting in xml format
//add them to a dropbox
$dropbox = new dropbox();
$dropbox->add_value('0', $full_days[0]);
$dropbox->add_value('1', $full_days[1]);
$dropbox->print_dropbox("first_weekday", $_SESSION['GO_SESSION']['first_weekday']);
?>
</td>
</tr>
<tr>
<td > </td>
</tr>
<tr>
<td>
<?php
echo $pref_thousands_seperator;
?>
:
</td>
示例7: dropbox
} else {
// hien thi mot ngay
$interval_end_time2 = $interval_start_time2;
}
}
if ($_SESSION['GO_SESSION']['DST'] > 0 && date('I') > 0) {
$dst_offset = $_SESSION['GO_SESSION']['DST'];
} else {
$dst_offset = 0;
}
$timezone_offset = $_SESSION['GO_SESSION']['timezone'] + $dst_offset;
if (!$print) {
echo '<table border="0" cellpadding="0" cellspacing="0"><tr height="28"><td><h3>';
echo $sc_view . ': </h3></td><td>';
$dropbox = new dropbox();
$dropbox->add_value('1', '1 ' . $sc_day);
$dropbox->add_value('2', '2 ' . $sc_days);
$dropbox->add_value('5', '5 ' . $sc_days);
$dropbox->add_value('7', '1 ' . $sc_week);
$dropbox->add_value('14', '2 ' . $sc_weeks);
$dropbox->add_value('21', '3 ' . $sc_weeks);
$dropbox->add_value('35', '1 ' . $sc_month);
$dropbox->print_dropbox("show_days", $cal_settings['show_days'], 'onchange="javascript:document.forms[0].submit()"');
if ($cal_settings['show_days'] == 5) {
$interval = 7;
} else {
$interval = $cal_settings['show_days'];
}
echo '</td><td nowrap><h3><a href="javascript:goto_date(' . ($day - $interval) . ', ' . $month . ', ' . $year . ');"><< </a> ';
echo date($_SESSION['GO_SESSION']['date_format'], $interval_start_time2 + $timezone_offset * 3600) . ' - ' . date($_SESSION['GO_SESSION']['date_format'], $interval_end_time2 + $timezone_offset * 3600);
echo ' <a href="javascript:goto_date(' . ($day + $interval) . ', ' . $month . ', ' . $year . ');">>></a>';
示例8: isset
<?php
$name = isset($_POST['name']) ? htmlspecialchars(smartstrip($_POST['name'])) : '';
?>
<input type="text" class="textbox" name="name" value="<?php
echo $name;
?>
" maxlength="100" size="30" />
</td>
<?php
$delimiter = isset($delimiter) ? $delimiter : '/';
echo '<input type="hidden" name="delimiter" value="' . $delimiter . '" />';
echo '<td>' . $ml_inside . '</td>';
echo '<td>';
$parent_folder_name = isset($parent_folder_name) ? $parent_folder_name : '';
$dropbox = new dropbox();
$dropbox->add_value($account['mbroot'], $ml_root_mailbox);
for ($i = 0; $i < $mcount; $i++) {
if ($go_mailboxes[$i]['attributes'] != LATT_NOINFERIORS) {
$dropbox->add_value($go_mailboxes[$i]['name'], str_replace('INBOX' . $go_mailboxes[$i]['delimiter'], '', $go_mailboxes[$i]['name']));
}
}
$dropbox->print_dropbox('parent_folder_name', $parent_folder_name);
echo '</td>';
?>
<td>
<?php
$button = new button($cmdOk, "javascript:_save('create_folder', 'false')");
?>
</td>
</tr>
</table>
示例9: dropbox
echo '</td></tr>';
echo '<tr><td>' . $pm_end_date . ':</td><td>';
echo $end_date;
echo '</td></tr>';
echo '<tr><td>' . $pm_status . '</td><td><b>';
$status = $pm_status_values[$projects->f('status')];
echo $status . '</b></td></tr>';
echo '<tr><td>' . $pm_progress . ':</td><td>' . $progress . '%</td></tr>';
echo '<tr><td>' . $pm_budget . ':</td><td>' . $budget . ' ' . $_SESSION['GO_SESSION']['currency'] . '</td></tr>';
}
$fee_count = $projects->get_fees();
if ($fee_count > 0) {
echo '<tr><td>' . $pm_fee . '</td><td>';
$dropbox = new dropbox();
while ($projects->next_record()) {
$dropbox->add_value($projects->f('id'), $projects->f('name') . ' (' . htmlentities($_SESSION['GO_SESSION']['currency']) . ' ' . number_format($projects->f('value'), 2, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator']) . ' / ' . $projects->f('time') . ' ' . $pm_mins . ')');
}
$disabled = $project_id < 1 || $project['user_id'] == $GO_SECURITY->user_id ? '' : 'disabled';
$dropbox->print_dropbox('fee_id', $fee_id, $disabled);
} else {
echo '<input type="hidden" name="fee_id" value="0" />';
}
if ($project_id > 0) {
echo '<tr><td>' . $strOwner . ':</td><td>' . show_profile($project['user_id']) . '</td></tr>';
echo '<tr><td>' . $strCreatedAt . ':</td><td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $project['ctime'] + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td><tr>';
echo '<tr><td>' . $strModifiedAt . ':</td><td>' . date($_SESSION['GO_SESSION']['date_format'] . ' ' . $_SESSION['GO_SESSION']['time_format'], $project['mtime'] + $_SESSION['GO_SESSION']['timezone'] * 3600) . '</td><tr>';
}
?>
<tr>
<td valign="top"><?php
echo $strComments;
示例10: isset
$department = isset($_POST['department']) ? $_POST['department'] : -1;
echo '<tr><td>' . $strDepartment . ':</td><td>';
$dropbox->print_dropbox('department', $department);
echo '</td></tr>';
$function = isset($_POST['function']) ? $_POST['function'] : -1;
echo '<tr><td>' . $strFunction . ':</td><td>';
$dropbox->print_dropbox('function', $function);
echo '</td></tr>';
echo '</table>';
} else {
$dropbox = new dropbox();
$required_dropbox = new dropbox();
$dropbox->add_value('', $strNotIncluded);
for ($n = 0; $n < sizeof($record); $n++) {
$dropbox->add_value($n, $record[$n]);
$required_dropbox->add_value($n, $record[$n]);
}
echo '<table border="0" cellpadding="4" cellspacing="0">';
echo '<tr><td><h3>Group-Office</h3></td>';
echo '<td><h3>CSV</h3></td></tr>';
$name = isset($_POST['name']) ? $_POST['name'] : 0;
echo '<tr><td>' . $strName . ':</td><td>';
$required_dropbox->print_dropbox('name', $name);
echo '</td></tr>';
$address = isset($_POST['address']) ? $_POST['address'] : -1;
echo '<tr><td>' . $strAddress . ':</td><td>';
$dropbox->print_dropbox('address', $address);
echo '</td></tr>';
$zip = isset($_POST['zip']) ? $_POST['zip'] : -1;
echo '<tr><td>' . $strZip . ':</td><td>';
$dropbox->print_dropbox('zip', $zip);
示例11: or
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
*/
require "../../Group-Office.php";
$GO_SECURITY->authenticate();
$GO_MODULES->authenticate('projects');
require $GO_LANGUAGE->get_language_file('projects');
$page_title = $lang_modules['projects'];
require $GO_MODULES->class_path . "projects.class.inc";
$projects = new projects();
$project_id = isset($_GET['project_id']) ? $_GET['project_id'] : '0';
$project_task_id = isset($_GET['project_task_id']) ? $_GET['project_task_id'] : '0';
$projects->query("SELECT * FROM task WHERE task_project_id='{$project_id}' AND task_id='{$project_task_id}'");
if ($projects->next_record()) {
$tstat = $projects->f("task_status");
$tcomm = $projects->f("task_comment");
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="get" action="' . $_SERVER['PHP_SELF'] . '" name="projects_form">';
$dropbox = new dropbox();
$dropbox->add_value(0, $pm_task_status_values[0]);
$dropbox->add_value(1, $pm_task_status_values[1]);
$dropbox->add_value(2, $pm_task_status_values[2]);
$dropbox->print_dropbox("task_status", $tstat);
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="project_id" value="' . $project_id . '" />';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo "p = {$project_id}, t = {$project_task_id}";
require $GO_THEME->theme_path . "footer.inc";
示例12: button
case 'write_permissions':
print_acl($bookmark["acl_write"]);
echo '<br />';
echo '<br /> ';
$button = new button($cmdClose, "javascript:document.location='" . $GO_MODULES->url . "';");
break;
default:
if (isset($feedback)) {
echo $feedback;
}
?>
<table border="0" cellpadding="0" cellspacing="3">
<?php
if ($bookmarks->get_catagories($GO_SECURITY->user_id, true)) {
$dropbox = new dropbox();
$dropbox->add_value('0', $bm_catagory_other);
while ($bookmarks->next_record()) {
$dropbox->add_value($bookmarks->f('id'), $bookmarks->f('name'));
}
echo '<tr><td>' . $bm_catagory . ':</td><td>';
$dropbox->print_dropbox('catagory_id', $catagory_id);
echo '</td></tr>';
} else {
echo '<input type="hidden" name="catagory_id" value="' . $catagory_id . '" />';
}
?>
<tr>
<td><?php
echo $strName;
?>
示例13: isset
$company['homepage'] = isset($_REQUEST['homepage']) ? smartstrip($_REQUEST['homepage']) : 'http://';
$company['bank_no'] = isset($_REQUEST['bank_no']) ? smartstrip($_REQUEST['bank_no']) : '';
$company['vat_no'] = isset($_REQUEST['vat_no']) ? smartstrip($_REQUEST['vat_no']) : '';
$company['acl_write'] = 0;
}
$addressbook_id = isset($old_subscribed_addressbook_id) && $old_subscribed_addressbook_id > 0 ? $subscribed_addressbook_id : $company['addressbook_id'];
$subscribed_addressbook_id = $addressbook_id;
$cp = new addressbook();
$parent_dropbox = new dropbox();
$company['parent_id'] = 0;
if ($company_id) {
$cp->get_company($company_id);
$company['parent_id'] = $cp->f('parent');
}
$count = $cp->get_companies($addressbook_id);
$parent_dropbox->add_value(0, $strNone);
if ($count) {
while ($cp->next_record()) {
$id = $cp->f('id');
if ($id == $company_id) {
continue;
}
$name = $cp->f('name');
$parent_dropbox->add_value($id, $name);
}
}
$tabtable->print_head();
if ($tabtable->get_active_tab_id() > 0) {
$catagory_id = $tabtable->get_active_tab_id();
$active_tab_id = 'custom_fields';
} else {
示例14: explode
// We can only do this if we already processed the first group.
if (is_array($last)) {
// Fill the array with the seperate parts of the name of the group.
$parts = explode(".", $ng);
// We process each part of the shorter group.
for ($i = 1; $i < count($parts) && $i < count($last); $i++) {
// If the actual processed part is equal in this group and tha
// last one, we can indent it.
if ($parts[$i] == $last[$i]) {
$indent = $indent . " ";
}
}
}
// Text and value of dropbox entry should be the same: the name
// of the group.
$dropbox->add_value($ng, $indent . $ng);
// We finished with processing this group. Now we update this variable
// To be able to compare the next group with this one.
$last = explode(".", $ng);
}
// Print the dropbox. It's called "newsgroup" without any parameters.
$dropbox->print_dropbox('newsgroup', '', '');
echo "<br/>";
}
// Now we print an input field for the subject of the message.
echo "<input type='text' class='textbox' name='news_subj' size='110' ";
echo "value='";
// If we are answering to an message we print the old subject with an
// additional "Re: " in front of it:
if ($mode == "answer") {
// Print an "Re: " and the encoded subject of the old message.
示例15: mail
}
?>
<input type="hidden" name="task" value="smtp" />
HPT-OBM có thể gửi và nhận e-mail. Vui lòng cho biết thiết lập SMTP server của bạn. <br />
Hãy để trong chỗ này nếu bạn dùng hàm php mail(), nhưng bạn sẽ không thể dùng dùng CC và BCC header!
<br />
<br />
<table style="border-width: 0px;font-family: Arial,Helvetica; font-size: 12px;">
<tr>
<td>
Mailer:
</td>
<td>
<?php
$dropbox = new dropbox();
$dropbox->add_value('mail', 'PHP Mail() Function');
$dropbox->add_value('sendmail', 'Use local sendmail');
$dropbox->add_value('qmail', 'Use local Qmail');
$dropbox->add_value('smtp', 'Use remote SMTP');
$dropbox->print_dropbox('mailer', $GO_CONFIG->mailer, 'onchange="javascript:change_mailer()"');
?>
</td>
</tr>
<tr>
<td>
SMTP server:
</td>
<td>
<input type="text" size="40" name="smtp_server" value="<?php
echo $GO_CONFIG->smtp_server;
?>