} else { $colors_request = ''; $cr_style = 'display:none;'; } $content .= drawColorsRequest($colors_request, "dra-{$d['drafts_id']}-colors-request", $cr_style, 'Draft Colors Request', '', false, $hidden_input); $content .= '</div>'; } $content .= '</div>'; //RIGHT Part close //FOLLOWERS $content .= $design->followers->drawFollowersWithContainer('Design Followers'); $js_reload_followers = $design->followers->JSReloader(); $javascript = ' ' . $design->comments->drawCommentsJSAction('reloadList();' . $js_reload_followers) . ' ' . $design->followers->drawFollowersJSAction($session_userinfo['id'], '') . ' ' . drawColorsRequestJSAction('colors-request', 'UPDATECOLORSREQUEST', 'REMOVEFROMCOLORSREQUEST', 'drafts_id', 'pub_vars', $js_reload_followers) . ' function nameUpdated(xmlResult, txtStatus) { if(txtStatus=="success") { var draft_name = $("draft_name", xmlResult).text(); var draft_namekey = $("draft_namekey", xmlResult).text(); $("#"+draft_namekey).val(draft_name); $("#"+draft_namekey).attr("disabled", false); reloadDraftList(); ' . $js_reload_followers . ' } } function imageDeleted(xmlResult, txtStatus) { if(txtStatus=="success") { var image = $("image", xmlResult).text(); var drafts_id = $("drafts_id", xmlResult).text(); var draft_key = $("draft_key", xmlResult).text();
$content .= '</table>'; $content .= '</div>'; $content .= '</div>'; //RIGHT Part close //FOLLOWERS $content .= $design->followers->drawFollowersWithContainer('Design Followers'); // $button_upload = '<input type=\'button\' class=\'btnupload\' value=\'New\' />'; $button_upload = '<button class=\'btnupload\' title=\'Upload Image\'><span class=\'ui-icon ui-icon-folder-open\' style=\'float:left;\'></span></button>'; // $button_delete = '<input type=\'button\' class=\'btndelete\' value=\'Delete\' disabled=\'disabled\' />'; $button_delete = '<button class=\'btndelete\' title=\'Delete Image\' disabled=\'disabled\'><span class=\'ui-icon ui-icon-trash\' style=\'float:left;\'></span></button>'; $js_reload_followers = $design->followers->JSReloader(); $javascript = ' ' . $design->drawDetailTableJSRule('update', 'updatedesign') . ' ' . $design->comments->drawCommentsJSAction('reloadList();' . $js_reload_followers) . ' ' . $design->followers->drawFollowersJSAction($session_userinfo['id'], '') . ' ' . drawColorsRequestJSAction('colors-request', 'UPDATECOLORSREQUEST', 'REMOVEFROMCOLORSREQUEST', 'designs_id', $design->id, $js_reload_followers) . ' ' . drawNotesJSAction2('designs-description', 'UPDATEDESIGNSDESCRIPTION', 'designs_id', $design->id, $js_reload_followers) . ' ' . drawNotesJSAction('source-of-ideas', 'UPDATESOURCEOFIDEAS', 'designs_id', $design->id, $js_reload_followers) . ' function imageDeleted(xmlResult, txtStatus) { if(txtStatus=="success") { var imgid = $("id", xmlResult).text(); var image = $("img", xmlResult).text(); $("#"+imgid+" img").replaceWith(image); $("#"+imgid+" .btndelete").attr("disabled", true); reloadList(); ' . $js_reload_followers . ' } } $("#copyme").click(function() { location.href = "?open=designs-detail-copy&id=' . $design->id . ($hidemenuscript == '' ? '' : '&hidemenu=true') . '"; });