$design = new design();
$class_pm = new products_minierp();
$pid = tep_db_prepare_input($_GET['pid']);
$d_cat = tep_db_prepare_input($_GET['dcat']);
$d_cat_text = $design->getDesignCategory($d_cat);
$imgsize = '150';
$products = $class_pm->retrieveDetail($pid, 'p');
$design->original_products_id = $pid;
$design->category = $d_cat;
$content .= '<form name="copydesign" method="post" action="?open=designs-detail">';
$content .= '<input type="hidden" name="me_action" value="CREATENEWDESIGN" />';
$content .= '<div style="float:left;margin-left:15px;">';
//LEFT Part open
$margin_left = 15;
$content .= '<div id="image_1" style="float:left;width:' . $imgsize . 'px;height:210px;text-align:center;">';
$content .= '<label><strong>Main Image</strong><br />';
$content .= webImage($products['p']['products_image'], $imgsize, $imgsize, 'Main Image', 'img-border', '') . '</label>';
$content .= '<input type="hidden" name="image_1" value="' . $products['p']['products_image'] . '" />';
$content .= '</div>';
$margin_left += $imgsize;
$margin_left += 30;
$content .= '</div>';
//LEFT Part close
$content .= '<div style="margin-left:' . $margin_left . 'px;padding-top:20px;">';
$content .= $design->drawDetailTable(true, 'copy');
$buttons = '<input id="createcopy" type="button" value="Create" title="Create ' . $d_cat_text . '" />';
$content .= '<div style="margin-top:10px;width:395px;text-align:right;">' . $buttons . '</div>';
$content .= '</div>';
$content .= '</form>';
$javascript = $design->drawDetailTableJSRule('createcopy', 'copydesign');
$title = 'Create ' . $d_cat_text . ' from Product ' . $pid;
Пример #2
0
        $result['box_target'] = "#dra-{$drafts_id}-colors-request";
        ajaxReturn($result);
        exit;
    }
    if (isset($design)) {
        $design->comments->processPostAction($design->owner, $design->followers);
        $design->followers->processPostAction();
    }
}
if (is_null($design->id)) {
    $content .= '<h3 class="red">No Valid Design ID Specified</h3>';
    $title = 'Design Drafts Management';
} else {
    $content .= '<div style="float:left;width:400px;">';
    //LEFT Part open
    $content .= '<div>' . $design->drawDetailTable(false, true, 2) . '</div>';
    //COLORS REQUEST
    $content .= '<div style="margin-top:20px;">';
    $content .= drawColorsRequest($design->colors_request, 'colors-request', '', 'Design Colors Request', '', true);
    $content .= '</div>';
    //COMMENTS
    $content .= '<div style="margin-top:20px;">';
    $content .= $design->comments->drawComments($session_userinfo['username'], 'Design Comments');
    $content .= '</div>';
    $content .= '</div>';
    //LEFT Part close
    $content .= '<div style="margin-left:430px;width:400px;">';
    //RIGHT Part open
    $drafts = $design->retrieveDrafts();
    for ($x = 0; $x < 5; $x++) {
        $d = $drafts[$x];
Пример #3
0
use_class('design');
if (isset($_GET['imagelimit'])) {
    $messagebox->add('File is too big, max width/height allowed is ' . $_GET['imagelimit'] . 'px');
}
if (isset($_GET['imageupload']) && $_GET['imageupload'] == 'none') {
    $messagebox->add('Please upload an image to create New Design');
}
$design = new design();
if (isset($_GET['cat']) && $_GET['cat'] == 'R') {
    $design->category = 'R';
    $content .= '<form name="newdesign" method="post" action="?open=designs-detail" enctype="multipart/form-data">';
    $content .= '<input type="hidden" name="me_action" value="CREATENEWDESIGN" />';
    $content .= '<input type="hidden" name="status" value="5" />';
    $messagebox->add('<strong>This Design will be created directly in SAMPLINGS Tab</strong>');
    $content .= $design->drawDetailTable();
    $submit = '<input id="create" type="button" value="Create Design" />';
    $content .= '<div class="buttons" style="width:390px;">' . $submit . '</div>';
    $content .= '</form>';
    $javscript .= $design->drawDetailTableJSRule('create', 'newdesign');
} else {
    $content .= '<div class="box ui-corner-all" style="margin-bottom:20px;">';
    $content .= '<h2>Any Design Categories with New Image</h2>';
    $content .= '<form name="newdesign" method="post" action="?open=designs-detail" enctype="multipart/form-data">';
    $content .= '<input type="hidden" name="me_action" value="CREATENEWDESIGN" />';
    $content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
    $content .= '<tr><td class="label">Design Image</td><td><input type="file" name="image_1" /></td></tr>';
    $content .= '<tr><td class="label">Source of Idea</td><td><input type="text" id="source_of_ideas" name="source_of_ideas" style="width:100%;" disabled="disabled"/></td></tr>';
    $content .= '</table></div>';
    $content .= '<div class="buttons" style="width:410px;"><input type="submit" value="Create Design" /></div>';
    $content .= '</form>';