示例#1
0
              </font>
          </div>
      </td>
    </tr>
</table>

<?php 
//var_dump($stock_code);
$select_purchaser = '';
if ($show_purchaser_filter) {
    $options = array('-1' => lang('all_purchasers'));
    foreach ($purchasers as $purchaser) {
        $options[$purchaser->u_id] = $purchaser->u_name;
    }
    $url = site_url_no_key('purchase/purchase_list/view_list');
    $url_key = site_key('purchase/purchase_list/view_list');
    $js = "onChange='filter_purchase_list(\"{$url}\", \"{$url_key}\", this.value);'";
    $select_purchaser = form_dropdown('select_purchaser', $options, $purchaser_id, $js);
}
?>
<table width="100%" border="0" align="center">
    <tr>
        <td><?php 
echo lang('deadline_of_order_confirmation');
?>
 : <?php 
echo $fetch_dueout_update_time;
?>
</td>
        <td style="float: right;"><?php 
echo $select_purchaser;
示例#2
0
    public function generate_ac($id, $config)
    {
        $uri = 'mallerp/ac';
        $url = site_url_no_key($uri, $config);
        $key = site_key($uri);
        $script = <<<SCRIPT
<script type="text/javascript">
    document.observe('dom:loaded', function() {
        new AutoComplete('{$id}', "{$url}", {
            method: 'POST',
            delay: .25,
            resultFormat: AutoComplete.Options.RESULT_FORMAT_JSON
        }, "{$key}");
    });
</script>
SCRIPT;
        return $script;
    }
</B>
              </font>
          </div>
      </td>
    </tr>
</table>

<?php 
$select_purchaser = '';
if ($show_purchaser_filter) {
    $options = array('-1' => lang('all_purchasers'));
    foreach ($purchasers as $purchaser) {
        $options[$purchaser->u_id] = $purchaser->u_name;
    }
    $url = site_url_no_key('qt/wait_for_product_list/view_list');
    $url_key = site_key('qt/wait_for_product_list/view_list');
    $js = "onChange='filter_purchase_list(\"{$url}\", \"{$url_key}\", this.value);'";
    $select_purchaser = form_dropdown('select_purchaser', $options, $purchaser_id, $js);
}
?>
<table width="100%" border="0" align="center">
    <tr>
        <td><?php 
echo lang('deadline_of_order_confirmation');
?>
 : <?php 
echo $fetch_dueout_update_time;
?>
</td>
        <td style="float: right;"><?php 
echo $select_purchaser;
    $submit_url = site_url('seo/release/save_verifying');
    $url = anchor($resource->url, 'Resource URL', array('target' => '_blank', 'title' => $resource->url));
    $config_drop = array('name' => 'drop', 'value' => lang('close'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();submit_release('{$submit_url}', {$resource->id}, {$content->id},'drop', this);return true;");
    $drop_button = form_input($config_drop);
    $config_save = array('name' => 'save', 'value' => lang('release'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();submit_release('{$submit_url}', {$resource->id}, {$content->id},'save', this);return true;");
    $save_button = block_button($config_save);
    $config_input = array('name' => 'validate_url_' . $resource->id, 'id' => 'validate_url_' . $resource->id, 'value' => $resource ? $resource->validate_url : '', 'maxlength' => '200', 'size' => '20');
    $data[] = array($resource->username, $resource->password, $url, $resource->cat_name, $resource->language, form_input($config_input) . $save_button, $drop_button);
}
$attributes = array('id' => 'release_form');
$save_url = site_url('seo/release/save_verifying');
echo form_open($save_url, $attributes);
$options = array();
$companys = $this->seo_service_company_model->fetch_all_service_companys();
$options[-1] = lang('all');
foreach ($companys as $company) {
    $options[$company->id] = $company->name;
}
$url = site_url_no_key('seo/content_edit/content_detail');
$url_key = site_key('seo/content_edit/content_detail');
$js = "onChange='filter_company_resource(\"{$url}\", \"{$url_key}\", {$content->id}, this.value);'";
echo '<div style= "float:right">' . ($select_purchaser = form_dropdown('select_purchaser', $options, $company_id, $js) . '</div>');
$sortable = array('default', 'default', 'default', 'default', 'default', 'default');
echo block_js_sortable_table($head, $data, $sortable, "width: 60%; float:left;border-collapse: collapse;");
echo '<div style="clear: both;"></div>';
echo '<h2>' . $back_button . '</h2>';
echo form_close();
?>