• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP dropbox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中dropbox的典型用法代码示例。如果您正苦于以下问题:PHP dropbox类的具体用法?PHP dropbox怎么用?PHP dropbox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了dropbox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Class Constructor
  */
 public function __construct($options)
 {
     // init vars
     $this->app = App::getInstance('zoo');
     // init Dropbox Utility
     $this->dropbox = new AEUtilDropbox();
     $this->dropbox->setAppKeys(json_decode(base64_decode('eyJhcHAiOiJqZng4enFwdGwyYXc1NGQiLCJzZWNyZXQiOiJuZ2prZmxkY2R3ZDhnd3EifQ==')));
     $token = (object) array('oauth_token_secret' => $token_secret, 'oauth_token' => $token, 'uid' => $token_uid);
     $this->dropbox->setToken($token);
 }
开发者ID:unrealprojects,项目名称:journal,代码行数:13,代码来源:Dropbox.php


示例2: _getContents

 /**
 * Get file contents
 *
 * @param string $path file path
 * @return string|false
 * @author Dmitry (dio) Levashov
 **/
 protected function _getContents($path)
 {
     $contents = '';
     try {
         $contents = $this->dropbox->getFile($path);
     } catch (Dropbox_Exception $e) {
         return $this->setError('Dropbox error: ' . $e->getMessage());
     }
     return $contents;
 }
开发者ID:basdog22,项目名称:Qool,代码行数:17,代码来源:elFinderVolumeDropbox.class.php


示例3: execute

 public function execute(WPAdm_Command_Context $context)
 {
     @session_start();
     require_once WPAdm_Core::getPluginDir() . '/modules/dropbox.class.php';
     WPAdm_Core::log(langWPADM::get('Send to dropbox files', false));
     $dropbox = new dropbox($context->get('key'), $context->get('secret'), $context->get('token'));
     if (!$dropbox->isAuth()) {
         $context->setError(langWPADM::get('Website "%d" can\'t authorize on Dropbox with using of "app key: %k" and "app secret: %s"', false, array('%d', '%k', '%s'), array(SITE_HOME, $context->get('key'), $context->get('secret'))));
         return false;
     }
     $files = $context->get('files');
     $file = explode("/", $files);
     $file_name = array_pop($file);
     $folder_project_temp = $context->get('folder_project');
     $folder_project = "";
     if (!empty($folder_project_temp)) {
         $folder_project = $folder_project_temp . "/";
         $dropbox->createDir($folder_project_temp);
         $dropbox->createDir($folder_project . $context->get('folder'));
     } else {
         $dropbox->createDir($context->get('folder'));
     }
     $fromFile = str_replace('//', '/', $files);
     $toFile = str_replace('//', '/', $folder_project . $context->get('folder') . '/' . $file_name);
     $res = $dropbox->uploadFile($fromFile, $toFile);
     if (isset($res['error']) && isset($res['text']) && $res['error'] == 1) {
         $context->setError(langWPADM::get('Dropbox returned an error during file sending: ', false) . '"' . $res['text'] . '"');
         return false;
     }
     if (isset($res['size']) && isset($res['client_mtime'])) {
         WPAdm_Core::log(langWPADM::get('File upload: ', false) . basename($files) . langWPADM::get(' size: ', false) . $res['size']);
     }
     return true;
 }
开发者ID:NYC2015,项目名称:team-12,代码行数:34,代码来源:class-wpadm-command-send-to-dropbox.php


示例4: mktime

         $interval_end_time2 = mktime(0, 0, 0, $month, $day + $cal_settings['show_days'] - 1, $year);
     } 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 . ':&nbsp;</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 . ');">&lt;&lt; </a>&nbsp;';
     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);
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:index.php


示例5: isset

$dropbox->add_value('subject', $ml_subject_is);
$dropbox->add_value('to', $ml_to_is);
$dropbox->add_value('cc', $ml_cc_is);
$dropbox->print_dropbox('field', $field);
?>
</td>
<td>
<input type="text" name="keyword" size="30" class="textbox" />
</td>
</tr>
<tr>
<td colspan="2">

<?php 
$folder = isset($_POST['folder']) ? $_POST['folder'] : '';
$dropbox = new dropbox();
$dropbox->add_value('', $ml_move_to);
$email->get_all_folders($id, true);
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('folder', $folder);
?>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<?php 
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:filter.php


示例6: dropbox

	<?php 
        if ($has_write_permission) {
            $dropbox = new dropbox();
            $dropbox->add_arrays($hours, $hours);
            $dropbox->print_dropbox('view_start_hour', $view['start_hour']);
        } else {
            echo $view['start_hour'];
        }
        ?>
	&nbsp;<?php 
        echo $sc_to;
        ?>
&nbsp;
	<?php 
        if ($has_write_permission) {
            $dropbox = new dropbox();
            $dropbox->add_arrays($hours, $hours);
            $dropbox->print_dropbox('view_end_hour', $view['end_hour']);
        } else {
            echo $view['end_hour'];
        }
        ?>
	</td>
</tr>
<tr>
	<td valign><?php 
        echo $sc_calendars;
        ?>
:</td>
	<td>
	<table border="0">
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:view.php


示例7: dropbox

    echo '<input type="hidden" name="port" value="' . $port . '" />';
    echo '<input type="hidden" name="user" value="' . $user . '" />';
    echo '<input type="hidden" name="pass" value="' . $pass . '" />';
} else {
    ?>

    <tr><td colspan="2">&nbsp;</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>
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:account.php


示例8: while

        while ($db->next_record()) {
            $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;
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:calendars.php


示例9: date

?>
<tr>
<td><b><?php 
echo $strDate;
?>
:&nbsp;</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 . ':&nbsp;</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>
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:message.php


示例10: wpadm_show_backup

 public static function wpadm_show_backup()
 {
     require_once DRBBACKUP_BASE_DIR . "/modules/dropbox.class.php";
     parent::$type = 'full';
     $dropbox_options = get_option(PREFIX_BACKUP_ . 'dropbox-setting');
     if ($dropbox_options) {
         $dropbox_options = unserialize(base64_decode($dropbox_options));
         if (isset($dropbox_options['app_key']) && isset($dropbox_options['app_secret']) && isset($dropbox_options['auth_token_secret'])) {
             $dropbox = new dropbox($dropbox_options['app_key'], $dropbox_options['app_secret'], $dropbox_options['auth_token_secret']);
             $folder_project = self::getNameProject();
             $backups = $dropbox->listing($folder_project);
             $n = count($backups['items']);
             $data['data'] = array();
             for ($i = 0; $i < $n; $i++) {
                 $backup = $dropbox->listing($folder_project . "/" . $backups['items'][$i]['name']);
                 $data['data'][$i]['name'] = $backups['items'][$i]['name'];
                 $data['data'][$i]['size'] = (double) $backup['size'] * 1024 * 1024;
                 $data['data'][$i]['dt'] = parent::getDateInName($backups['items'][$i]['name']);
                 $data['data'][$i]['count'] = count($backup['items']);
                 $data['data'][$i]['type'] = 'dropbox';
                 $k = $data['data'][$i]['count'];
                 $data['data'][$i]['files'] = '[';
                 for ($j = 0; $j < $k; $j++) {
                     $data['data'][$i]['files'] .= $backup['items'][$j]['name'] . ',';
                 }
             }
         }
     }
     if (isset($_GET['pay']) && $_GET['pay'] == 'success') {
         if (!file_exists(WPAdm_Core::getTmpDir() . "/pay_success")) {
             file_put_contents(WPAdm_Core::getTmpDir() . "/pay_success", 1);
             parent::setMessage(langWPADM::get('', false));
         }
     }
     if (isset($_GET['pay']) && $_GET['pay'] == 'cancel') {
         parent::setError(langWPADM::get('Checkout was canceled', false));
     }
     $data_local = parent::read_backups();
     if (isset($data['data'])) {
         $data['data'] = array_merge($data_local['data'], $data['data']);
         $data['md5'] = md5(print_r($data['data'], 1));
     } else {
         $data = $data_local;
     }
     if (file_exists(WPAdm_Core::getTmpDir() . "/pay_success")) {
         $plugin_info = get_plugins("/" . parent::$plugin_name);
         $plugin_version = isset($plugin_info[parent::$plugin_name . '.php']['Version']) ? $plugin_info[parent::$plugin_name . '.php']['Version'] : '';
         $data_server = parent::sendToServer(array('actApi' => "proBackupCheck", 'site' => home_url(), 'email' => get_option('admin_email'), 'plugin' => parent::$plugin_name, 'key' => '', 'plugin_version' => $plugin_version));
         if (isset($data_server['status']) && $data_server['status'] == 'success' && isset($data_server['key'])) {
             update_option(PREFIX_BACKUP_ . 'pro-key', $data_server['key']);
             if (isset($data_server['url']) && !empty($data_server['url'])) {
                 parent::setMessage(str_replace('&s', $data_server['url'], langWPADM::get('The "Dropbox backup & restore PRO" version can be downloaded here <a href="&s">download</a>', false)));
             }
         }
     }
     if (!function_exists('get_plugins')) {
         require_once ABSPATH . 'wp-admin/includes/plugin.php';
     }
     $stars5 = file_exists(WPAdm_Core::getTmpDir() . "/notice-star");
     $plugin_data = array_values(get_plugins('/dropbox-backup'));
     $is_runnig = WPAdm_Running::is_running();
     $show = !get_option('wpadm_pub_key') && is_super_admin();
     $error = parent::getError(true);
     $msg = parent::getMessage(true);
     $base_path = DRBBACKUP_BASE_DIR;
     ob_start();
     require_once $base_path . DIRECTORY_SEPARATOR . "template" . DIRECTORY_SEPARATOR . "wpadm_show_backup.php";
     echo ob_get_clean();
 }
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:69,代码来源:wpadm-class-wp.php


示例11: htmlspecialchars

	<textarea class="textbox" name="keywords" style="width: 250" rows="5"><?php 
            echo htmlspecialchars($keywords);
            ?>
</textarea>
	</td>
	</tr>
	<tr>
	<td>
	<?php 
            echo $cms_theme;
            ?>
:
	</td>
	<td>
	<?php 
            $dropbox = new dropbox();
            while ($cms->next_record()) {
                if (isset($site) && $cms->f('id') == $site['template_id'] || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $cms->f('acl_read')) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $cms->f('acl_write'))) {
                    $dropbox->add_value($cms->f('id'), $cms->f('name'));
                }
            }
            $dropbox->print_dropbox('template_id', $template_id);
            ?>
	</td>
	</tr>
	<tr>
	<td colspan="2">
	<?php 
            $checkbox = new checkbox('secure', 'true', $cms_use_go_auth, $secure_check);
            ?>
	</td>
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:site.php


示例12: htmlspecialchars

</tr>
<tr>
	<td valign="top"><?php 
echo $pm_value;
?>
:</td>
	<td><?php 
echo htmlspecialchars($_SESSION['GO_SESSION']['currency']);
?>
&nbsp;<input type="text" name="value" value="<?php 
echo htmlspecialchars($value);
?>
" maxlength="10" size="6" class="textbox" />
	&nbsp;/&nbsp;
	<?php 
$dropbox = new dropbox();
for ($i = 1; $i <= 60; $i++) {
    $dropbox->add_value($i, $i);
}
$dropbox->print_dropbox('time', $time);
echo '&nbsp;' . $pm_mins;
?>
	</td>
</tr>
<tr>
	<td colspan="2"><br />
	<?php 
$button = new button($cmdOk, "javascript:document.forms[0].submit()");
echo '&nbsp;&nbsp;';
$button = new button($cmdCancel, "javascript:document.location='index.php?post_action=fees';");
?>
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:fee.php


示例13: dropbox

         }
         $name = $_POST['product'];
         $category_id = $_POST['category_id'];
         $is_attachment = $_POST['is_attach'];
         $price = $_POST['price'];
         $description = $_POST['description'];
         $warranty = $_POST['warranty'];
         $part_number = $_POST['part_number'];
         $VAT = $_POST['VAT'];
         $cate = $_POST['attachment_categories'];
     }
 case 'add':
     if (!isset($change_case)) {
         $change_case = 'add_change';
     }
     $catedrop = new dropbox();
     if ($is_attachment == true) {
         $pro->get_attach_categories();
         while ($pro->next_record()) {
             $catedrop->add_value($pro->f('id'), $pro->f('name'));
         }
     } else {
         $pro->get_categories(-2);
         $first = true;
         $hasa = false;
         while ($pro->next_record()) {
             if (first) {
                 $first_cate_id = $pro->f('category_id');
                 //						$category_id = $pro->f('category_id');
                 $first = false;
             }
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:product.php


示例14: htmlspecialchars

        ?>
:</td>
      <td>
      <?php 
        if ($write_permissions) {
            echo '<input type="text" class="textbox" style="width: 250px;" name="name" value="' . htmlspecialchars($name) . '" maxlength="50" />';
        } else {
            echo htmlspecialchars($note['name']);
        }
        ?>
	</td>
	<tr>
	<?php 
        if ($notes->get_catagories() > 0) {
            echo '<tr><td>' . $no_catagory . ':</td><td>';
            $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);
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:note.php


示例15: execute

 public function execute(WPAdm_Command_Context $context)
 {
     @session_start();
     require_once WPAdm_Core::getPluginDir() . '/modules/dropbox.class.php';
     WPAdm_Core::log(langWPADM::get('Send to dropbox files', false));
     $dropbox = new dropbox($context->get('key'), $context->get('secret'), $context->get('token'));
     if (!$dropbox->isAuth()) {
         $context->setError(langWPADM::get('Website "%d" can\'t authorize on Dropbox with using of "app key: %k" and "app secret: %s"', false, array('%d', '%k', '%s'), array(SITE_HOME, $context->get('key'), $context->get('secret'))));
         return false;
     }
     $files = $context->get('files');
     $file = explode("/", $files);
     $file_name = array_pop($file);
     $folder_project_temp = $context->get('folder_project');
     $folder_project = "";
     if (!empty($folder_project_temp)) {
         $folder_project = $folder_project_temp . "/";
         $dropbox->createDir($folder_project_temp);
         $dropbox->createDir($folder_project . $context->get('folder'));
     } else {
         $dropbox->createDir($context->get('folder'));
     }
     $fromFile = str_replace('//', '/', $files);
     $toFile = str_replace('//', '/', $folder_project . $context->get('folder') . '/' . $file_name);
     $local = $context->get('local');
     $file_dropbox = $dropbox->listing($folder_project . $context->get('folder') . '/' . $file_name);
     $send = true;
     if (!isset($file_dropbox['error'])) {
         if ($file_dropbox['bytes'] != filesize($fromFile)) {
             $delete_file = $dropbox->deleteFile($folder_project . $context->get('folder') . '/' . $file_name);
             if (isset($delete_file['error'])) {
                 $context->setError(langWPADM::get('Dropbox returned an error during file sending: ', false) . '"' . $delete_file['text'] . '"');
                 return false;
             }
             $data_error_command = WPAdm_Running::getCommandResultData('errors_sending');
             if (isset($data_command[$fromFile])) {
                 $data_error_command[$fromFile]['count'] += 1;
             } else {
                 $data_error_command[$fromFile] = array();
                 $data_error_command[$fromFile]['count'] = 1;
             }
             WPAdm_Running::setCommandResultData('errors_sending', $data_error_command);
         } else {
             $send = false;
         }
     }
     if ($local) {
         $data_command = WPAdm_Running::getCommandResultData('command_dropbox');
         if (empty($data_command) || !in_array($fromFile, $data_command)) {
             if ($send) {
                 $res = $dropbox->uploadFile($fromFile, $toFile, true);
             } else {
                 $this->saveDataCommand($fromFile);
             }
         }
     } else {
         $res = $dropbox->uploadFile($fromFile, $toFile, true);
     }
     if (isset($res['error']) && isset($res['text']) && $res['error'] == 1) {
         $context->setError(langWPADM::get('Dropbox returned an error during file sending: ', false) . '"' . $res['text'] . '"');
         return false;
     }
     if (isset($res['size']) && isset($res['client_mtime'])) {
         WPAdm_Core::log(langWPADM::get('File upload: ', false) . basename($files) . langWPADM::get(' size: ', false) . $res['size']);
         $this->saveDataCommand($fromFile);
     }
     return true;
 }
开发者ID:derwegas,项目名称:strubbelkinder,代码行数:68,代码来源:class-wpadm-command-send-to-dropbox.php


示例16: dropbox

    <?php 
    if ($account['type'] == "imap") {
        if ($email->get_all_folders($account['id'], true) > 0) {
            $dropbox = new dropbox();
            $dropbox->add_value('', $ml_move_mail);
            if (strtolower($mailbox) != 'inbox') {
                $dropbox->add_value('INBOX', $ml_inbox);
            }
            while ($email->next_record()) {
                if (!($email->f('attributes') & LATT_NOSELECT) && $email->f('name') != $mailbox) {
                    $dropbox->add_value($email->f('name'), $email->f('name'));
                }
            }
            $dropbox->print_dropbox('folder', '', 'onchange="javascript:move_mail()"');
        }
        $dropbox = new dropbox();
        $dropbox->add_value('', $ml_mark);
        $dropbox->add_value('read', $ml_markread);
        $dropbox->add_value('unread', $ml_markunread);
        $dropbox->add_value('flag', $ml_flag);
        $dropbox->add_value('clear_flag', $ml_clearflag);
        $dropbox->print_dropbox('flag', '', 'onchange="javascript:set_flag()"');
    } else {
        echo '&nbsp;';
    }
    ?>

      </td>
      <td colspan="3" align="right" class="small" nowrap>
      <?php 
    echo $msg_count . " " . $ml_messages;
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:search.php


示例17: isset

echo $group_id;
?>
" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="close" value="false" />
<?php 
$tabtable->print_head();
if ($task == 'add_users') {
    echo '<table border="0" cellpadding="0" cellspacing="3">';
    if (isset($feedback)) {
        echo '<tr><td>' . $feedback . '</td></tr>';
    }
    echo '<tr><td>';
    $_COOKIE['user_search_field'] = isset($_COOKIE['user_search_field']) ? $_COOKIE['user_search_field'] : 'first_name';
    $search_field = isset($_POST['search_field']) ? $_POST['search_field'] : $_COOKIE['user_search_field'];
    $dropbox = new dropbox();
    $dropbox->add_value('first_name', $strFirstName);
    $dropbox->add_value('last_name', $strLastName);
    $dropbox->add_value('email', $strEmail);
    $dropbox->add_value('company', $strCompany);
    $dropbox->add_value('department', $strDepartment);
    $dropbox->add_value('function', $strFunction);
    $dropbox->add_value('address', $strAddress);
    $dropbox->add_value('city', $strCity);
    $dropbox->add_value('zip', $strZip);
    $dropbox->add_value('state', $strState);
    $dropbox->add_value('country', $strCountry);
    $dropbox->add_value('work_address', $strWorkAddress);
    $dropbox->add_value('work_cip', $strWorkZip);
    $dropbox->add_value('work_city', $strWorkCity);
    $dropbox->add_value('work_state', $strWorkState);
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:group.php


示例18: while

        $disabled = $_POST['close_win'] > 0 ? 'disabled' : '';
        $pro->get_categories($edit_id, false);
        if ($pro->next_record()) {
            $edit_name = $pro->f('category_name');
            $edit_parent = $pro->f('parent_id');
        }
        $pro->get_attach_categories($edit_id, true);
        while ($pro->next_record()) {
            $att_arr[] = $pro->f('id');
        }
        break;
}
$trash = '<img src="' . $GO_THEME->images['delete'] . '" border="0">';
$spliter = '<tr><td colspan="100" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>';
$pro->get_attach_categories();
while ($pro->next_record()) {
    $att_arr[] = -5;
    if (in_array($pro->f('id'), $att_arr)) {
        $choice->add_option($pro->f('name'), $pro->f('id'), true);
    } else {
        $choice->add_option($pro->f('name'), $pro->f('id'));
    }
}
$pro->get_categories(0);
$dropbox = new dropbox();
$dropbox->add_value(0, $sc_top);
while ($pro->next_record()) {
    $dropbox->add_value($pro->f('category_id'), $pro->f('category_name'));
}
require 'templates/edit_category.tmp.php';
require $GO_THEME->theme_path . "footer.inc";
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:category.php


示例19: checkbox

$checkbox = new checkbox('completed', 'true', $cal_completed . ':', $todo['completed'], false, 'onclick="javascript:disable_completion_time(!this.checked);"');
echo '</td><td>';
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>&nbsp;&nbsp;';
$dropbox = new dropbox();
$dropbox->add_arrays($hours, $hours);
$dropbox->print_dropbox("completion_hour", $todo['completion_hour'], $disabled);
echo '&nbsp;:&nbsp;';
$dropbox = new dropbox();
$dropbox->add_arrays($mins, $mins);
$dropbox->print_dropbox("completion_min", $todo['completion_min'], $disabled);
echo '&nbsp;&nbsp;&nbsp;&nbsp;';
$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 '&nbsp;&nbsp;';
echo $cal_percent_completed;
echo '</td></tr></table>';
echo '<tr><td colspan="2">&nbsp;</td></tr>';
echo '<tr><td nowrap>' . $sc_background . ':&nbsp;</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');
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:todo.php


示例20: mail

     echo $feedback . '<br /><br />';
 }
 ?>
 <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;
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:install.php



注:本文中的dropbox类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP e107类代码示例发布时间:2022-05-23
下一篇:
PHP dossier类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap