498 lines
49 KiB
Plaintext
498 lines
49 KiB
Plaintext
<%/*Encoding:UTF-8*/%>
|
|
<%/*Type:Portlet*/%>
|
|
<%//Def:[{"actioncode":"function this_Loaded(){\n var customToolbar=this.getTitlePortlet();\n customToolbar.AddButton(SPTheme.controlPanelHelp || '\u003c%=sp.getThemedImage(\"..\u002fimages\u002fcustom_toolbar\u002fhelp.png\",pageContext.getServletContext())%\u003e',\n 'javascript:Help()','','\u003c%=sp.translate(\"ADMIN_HELP\")%\u003e','\u003c%=sp.translate(\"ADMIN_HELP\")%\u003e'); \n customToolbar.SetTitle(FormatMsg('POSTIT_CREATE_NEW_MESSAGE'));\n customToolbar.RearrangeAll();\n}\nm_cLanguage='\u003c%=sp.getLanguage()%\u003e';\nm_cProgName=\"postin_new\";\ndocument.title=\"\u003c%=sp.translate(\"POSTIT_CREATE_NEW_MESSAGE\")%\u003e\";\n\nfunction button_send_Click(){\n this.createdby.Value(\u003c%=sp.getUserCode()%\u003e);\n if(this.usercode.Value()=='') this.usercode.Value('1');\n if(this.datestart.Value()==null){\n this.datestart.Value(new Date());\n }\n this.splinker_send.Link();\n}\nfunction button_cancel_Click(){\n window.close();\n}\nfunction splinker_send_Updated(){\n window.close();\n}\nfunction btn_open_start_Click(){\n PrepareJsCalendar(false);\n LaunchCalendar(this.datestart.Ctrl_input,\"DD-MM-YYYY\");\n}\n\nfunction btn_open_stop_Click(){\n PrepareJsCalendar(false);\n LaunchCalendar(this.datestop.Ctrl_input,\"DD-MM-YYYY\");\n}\n","adaptive":"","altInterfaceFor":"","bg_image":"","bg_image_position":"","bg_image_repeat":"","bg_image_size":"","cache_in_post":"false","cache_time":"","color":"#F3F3F3","container_bg_color":"","container_bg_image":"","container_bg_pos":"","css":"","css_class":"","css_code":"[{\"version\":1,\"specific_states_value\":{\"normal\":{\"code\":\"\",\"cursor\":\"pointer\"},\"hover\":{},\":before\":{},\":after\":{}},\"current_state\":\"normal\",\"font_list\":[],\"type\":\"button\",\"class_name\":\"button\",\"selector\":\".button\",\"value\":\"POSTIT_SEND\",\"class_Css\":\"label\",\"id\":\"form\",\"code\":\".button {\\n cursor: pointer;\\n}\\n\"}]","custom":"","description":"","fixed_top":"","form_action":"","form_enctype":"default","form_target":"","form_type":"false","grapesCode":"\u003cbody\u003e{{ @label_to }}{{ @usercode }}{{ @label_validity_start }}{{ @datestart }}{{ @label_validity_end }}{{ @datestop }}{{ @label_subject }}{{ @subject }}{{ @postin }}{{ @button_send }}{{ @button_cancel }}{{ @btn_open_start }}{{ @btn_open_stop }}\u003c\u002fbody\u003e","grapesCss":"","h":"575","hsl":"","htmlcode":"{{ @label_to }}\n{{ @usercode }}\n{{ @label_validity_start }}\n{{ @datestart }}\n{{ @label_validity_end }}\n{{ @datestop }}\n{{ @label_subject }}\n{{ @subject }}\n{{ @postin }}\n{{ @button_send }}\n{{ @button_cancel }}\n{{ @btn_open_start }}\n{{ @btn_open_stop }}\n","included_font":"[]","language":"true","layout_step":"","layout_steps_values":"{}","lock_items":"","manifest":"Custom manifest","max_w":"","min_w":"","mode":"NORMAL","my_library":"controls.js,\u003c%=sp.getTheme()%\u003e\u002fcalendar.js,postin_help.js","offline":"false","on_security_failure":"login","page_layer":"","pages":"1","pagesProp":"[{\"title\":\"Edit Post-It\",\"layer\":\"\",\"h\":\"575\",\"w\":\"100%\",\"layout_steps_values\":{}}]","pages_names":"Edit Post-It","portlet_position":"","positioning":"absolute","roles":"","sec_heredity":"","security":"none","selectZone":"","server_cache_time":"","shared_manifest":"false","sp_theme":"true","steps":"","stretch_height":"false","tabstrip_class":"","tabstrip_hidden":"","tag":"","title":"default","title_block":"","title_url":"","type":"Form","v_line":"800","version":"37","w":"100%","wizard":""},{"align":"right","anchor":"top-left","assoc_input":"","bg_color":"","calculate":"","class_Css":"label","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":"true","field":"","fixed":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"label_to","nowrap":"false","page":"1","picture":"","rapp":"","sanitize":"xssPrevent","sanitize_tags":"","sequence":"1","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template_code":"","type":"Label","value":"POSTIT_TO:","w":"67","wireframe_props":"align,value,n_col","x":"2","y":"7","zindex":"1","zone":""},{"anchor":"top-left","calculate":"","class_Css":"combobox","create_undercond":"","ctrlOfVariant":"","dataobj":"dataobj_users","dataobj_value":"","disabled":"false","edit_undercond":"","empty_value":"true","field":"","fixed":"","font":"","font_size":"","h":"23","help_tips":"","hide":"false","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","name":"usercode","page":"1","picture":"","rapp":"","sequence":"1","spuid":"","tabindex":"","textlist":"name","type":"Combobox","typevar":"character","valuelist":"code","visible":"true","w":"238","wireframe_props":"name,textlist","x":"70","y":"5","zindex":"1","zone":""},{"align":"right","anchor":"top-right","assoc_input":"","bg_color":"","calculate":"","class_Css":"label","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":"true","field":"","fixed":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"label_validity_start","nowrap":"false","page":"1","picture":"","rapp":"","sanitize":"xssPrevent","sanitize_tags":"","sequence":"2","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template_code":"","type":"Label","value":"POSTIT_VALIDITY_START:","w":"96","wireframe_props":"align,value,n_col","x":"357","y":"10","zindex":"1","zone":""},{"anchor":"top-right","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"textbox","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"verdana","font_color":"","font_size":"","h":"23","help_tips":"","hide":"","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"","name":"datestart","page":"1","password":"","picker":"","picture":"DD-MM-YYYY","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"3","spuid":"","tabindex":"","type":"Textbox","typehtml5":"","typevar":"date","visible":"true","w":"100","wireframe_props":"name","x":"454","y":"6","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"align":"right","anchor":"top-right","assoc_input":"","bg_color":"","calculate":"","class_Css":"label","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":"true","field":"","fixed":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"label_validity_end","nowrap":"false","page":"1","picture":"","rapp":"","sanitize":"xssPrevent","sanitize_tags":"","sequence":"4","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template_code":"","type":"Label","value":"POSTIT_VALIDITY_END:","w":"81","wireframe_props":"align,value,n_col","x":"587","y":"10","zindex":"1","zone":""},{"anchor":"top-right","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"textbox","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"verdana","font_color":"","font_size":"","h":"23","help_tips":"","hide":"","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"","name":"datestop","page":"1","password":"","picker":"","picture":"DD-MM-YYYY","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"5","spuid":"","tabindex":"","type":"Textbox","typehtml5":"","typevar":"date","visible":"true","w":"100","wireframe_props":"name","x":"669","y":"6","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"align":"right","anchor":"","assoc_input":"","bg_color":"","calculate":"","class_Css":"label","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":"true","field":"","fixed":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":"20","heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":"false","layout_steps_values":"{}","n_col":"1","name":"label_subject","nowrap":"false","page":"1","picture":"","rapp":"","sanitize":"xssPrevent","sanitize_tags":"","sequence":"6","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template_code":"","type":"Label","value":"POSTIT_SUBJECT:","w":"67","wireframe_props":"align,value,n_col","x":"2","y":"36","zindex":"1","zone":""},{"anchor":"top-left-right","autocapitalize":"on","autocomplete":"","autofocus":"","calculate":"","class_Css":"textbox","create_undercond":"","ctrlOfVariant":"","dataobj":"","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","field":"","fixed":"","floating_placeholder":"","font":"verdana","font_color":"","font_size":"","h":"23","help_tips":"","hide":"","hide_undercond":"","init":"","init_par":"","layer":"false","layout_steps_values":"{}","maxlength":"","name":"subject","page":"1","password":"","picker":"","picture":"","placeholder":"","rapp":"","readonly":"false","scroll":"false","sequence":"7","spuid":"","tabindex":"","type":"Textbox","typehtml5":"","typevar":"character","visible":"true","w":"720","wireframe_props":"name","x":"70","y":"34","zerofilling":"false","zindex":"1","zone":"","zoom":""},{"anchor":"top-left-right","css_file":"","ctrlOfVariant":"","fixed":"","h":"435","hide":"false","layer":"false","layout_steps_values":"{}","name":"postin","page":"1","rapp":"","sequence":"8","spuid":"","tb_aligncenter":"true","tb_alignjustify":"true","tb_alignleft":"true","tb_alignright":"true","tb_bold":"true","tb_bookmark":"false","tb_charmap":"false","tb_code":"false","tb_custombutton":"","tb_customconfig":"","tb_custominit":"false","tb_custommenubar":"","tb_customplugin":"","tb_edit":"false","tb_emoticons":"false","tb_file":"false","tb_format":"false","tb_hr":"false","tb_image":"false","tb_insert":"false","tb_insertdatetime":"false","tb_italic":"true","tb_link":"false","tb_media":"false","tb_nonbreaking":"false","tb_paste":"false","tb_preview":"false","tb_print":"false","tb_redo":"true","tb_save":"false","tb_searchreplace":"false","tb_styleselect":"true","tb_table":"false","tb_tablemenubar":"false","tb_textcol":"false","tb_tools":"false","tb_underline":"true","tb_undo":"true","tb_view":"false","type":"TinyMce","w":"790","wireframe_props":"","x":"5","y":"80","zindex":"","zone":""},{"anchor":"top-right","bg_color":"","border_color":"","border_weight":"","class_Css":"button","create_undercond":"","ctrlOfVariant":"","edit_undercond":"","fixed":"","font":"","font_color":"","font_size":"","h":"28","help_tips":"","hide":"false","hide_undercond":"","layer":"false","layout_steps_values":"{}","name":"button_send","page":"1","rapp":"","sequence":"9","spuid":"","tabindex":"","type":"Button","type_submit":"false","type_wizard":"","value":"POSTIT_SEND","w":"77","wireframe_props":"value","x":"623","y":"531","zindex":"1","zone":""},{"anchor":"top-right","bg_color":"","border_color":"","border_weight":"","class_Css":"button","create_undercond":"","ctrlOfVariant":"","edit_undercond":"","fixed":"","font":"","font_color":"","font_size":"","h":"28","help_tips":"","hide":"false","hide_undercond":"","layer":"false","layout_steps_values":"{}","name":"button_cancel","page":"1","rapp":"","sequence":"10","spuid":"","tabindex":"","type":"Button","type_submit":"false","type_wizard":"","value":"POSTIT_CANCEL","w":"77","wireframe_props":"value","x":"713","y":"531","zindex":"1","zone":""},{"allowedentities":"","async":"false","check_exp":"","ctrlOfVariant":"","decrypted_parms":"","decrypted_parms_pwd":"","entity_type":"master","h":"30","m_cAction":"writeload","name":"splinker_send","offline":"false","page":"1","parms":"usercode,subject,postit=postin,createdby,datestart,datestop","popup":"false","popup_height":"","popup_maximized":"false","popup_scroll":"false","popup_style":"by skin","popup_width":"","progressbar":"","refresh":"","sequence":"11","servlet":"postin","target":"","type":"SPLinker","w":"30","x":"824","y":"-30"},{"allowedqueries":"","appendingData":"false","auto_exec":"true","clientDB":"","count":"false","ctrlOfVariant":"","decrypted_parms":"","decrypted_parms_pwd":"","dialog_css_class":"sqldataprovider","encrypted_fields":"","encrypted_fields_pwd":"","h":"30","init_time":"0","localDBName":"","long_query":"false","n_records":"100","name":"dataobj_users","offline":"false","page":"1","parms":"","parms_source":"","query":"postin_users","query_async":"false","return_fields_type":"true","sequence":"12","type":"SQLDataobj","w":"30","waiting_mgs":"","x":"859","y":"-30"},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"22","init":"","init_par":"","name":"createdby","page":"1","reactive":"","sequence":"13","server_side":"false","type":"Variable","typevar":"numeric","w":"100","x":"822","y":"2"},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"22","init":"","init_par":"false","name":"folder","page":"1","reactive":"","sequence":"14","server_side":"false","type":"Variable","typevar":"logic","w":"100","x":"822","y":"26"},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"22","init":"","init_par":"''","name":"father","page":"1","reactive":"","sequence":"15","server_side":"false","type":"Variable","typevar":"character","w":"100","x":"822","y":"50"},{"calculate":"","ctrlOfVariant":"","dataobj":"","decrypt":"","decrypt_pwd":"","encrypt":"","encrypt_pwd":"","field":"","h":"22","init":"","init_par":"false","name":"checked","page":"1","reactive":"","sequence":"16","server_side":"false","type":"Variable","typevar":"logic","w":"100","x":"822","y":"74"},{"alt":"","anchor":"top-right","bounded_position":"","class_Css":"image","create_undercond":"","ctrlOfVariant":"","dataobj":"","edit_undercond":"","field":"","fixed":"","font_color":"","font_color_hover":"","font_image":"","font_image_hover":"","font_name":"icons8_win10","font_size":"","h":"20","help_tips":"MSG_OPEN_CALENDAR","hide":"false","hide_undercond":"","href":"javascript:void(0)","img_type":"font icon","keep_proportions":"true","layer":"false","layout_steps_values":"{}","name":"btn_open_start","page":"1","path_type":"skin","rapp":"","sequence":"17","server_side":"","spuid":"","src":"portalstudio\u002fportalzoom_calendar.gif","srchover":"","tabindex":"","target":"","type":"Image","type_submit":"false","w":"20","wireframe_props":"","x":"562","y":"10","zindex":"1","zone":""},{"alt":"","anchor":"top-right","bounded_position":"","class_Css":"image","create_undercond":"","ctrlOfVariant":"","dataobj":"","edit_undercond":"","field":"","fixed":"","font_color":"","font_color_hover":"","font_image":"","font_image_hover":"","font_name":"icons8_win10","font_size":"","h":"20","help_tips":"MSG_OPEN_CALENDAR","hide":"false","hide_undercond":"","href":"javascript:void(0)","img_type":"font icon","keep_proportions":"true","layer":"false","layout_steps_values":"{}","name":"btn_open_stop","page":"1","path_type":"","rapp":"","sequence":"18","server_side":"","spuid":"","src":"portalstudio\u002fportalzoom_calendar.gif","srchover":"","tabindex":"","target":"","type":"Image","type_submit":"false","w":"20","wireframe_props":"","x":"775","y":"10","zindex":"1","zone":""}]%>
|
|
<%/*Description:*/%>
|
|
<%@ page import="com.zucchetti.SPBridge.*" %><%@ page import="java.util.*" %><%@ page import="com.zucchetti.PortalStudio.*" %><%@ page import="com.zucchetti.sitepainter.*" %>
|
|
<%@ page import="com.zucchetti.sitepainter.SPPrxycizer" %><%@page extends="com.zucchetti.PortalStudio.PortalStudioBase" %>
|
|
<%@ page language="java" pageEncoding="UTF-8" %><%Sitepainter sp=Sitepainter.getSitepainter(request);
|
|
String m_cJSPUID=getJSPUID();
|
|
String m_cTITLEUID=JSPLib.getPortletTitleUid(m_cJSPUID);
|
|
String idPortlet=sp.getPortletId(request,sp.getParameter("ForcedPortletUID",JSPLib.NewCPCCCHK(5)));
|
|
String PageletId = (request.getAttribute("PageletId") != null ? (String)request.getAttribute("PageletId" ) : sp.getParameter("PageletId" ,"") );
|
|
String SPPortletTitleId = (request.getAttribute("SPPortletTitleId") != null ? (String)request.getAttribute("SPPortletTitleId") : sp.getParameter("SPPortletTitleId","") );
|
|
String SPParentObjId=(request.getAttribute("SPParentObjId")!=null?(String)request.getAttribute("SPParentObjId"):sp.getParameter("SPParentObjId",""));
|
|
request.setAttribute("com.zucchetti.sitepainter.PortalStudio.getCryptPwd",JSPLib.NewCPCCCHK(6));%>
|
|
|
|
<%if(sp.getParameter("SpCssCode","").equals(m_cJSPUID)){
|
|
Library.SetMimeType(response,"text/css");
|
|
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
|
|
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
|
|
response.setHeader("Cache-Control","public");
|
|
%>
|
|
.postin_edit_container .button{ cursor: pointer;
|
|
}
|
|
.postin_edit_container {
|
|
}
|
|
.postin_edit_portlet{
|
|
position:relative;
|
|
width:100%;
|
|
min-width:800px;
|
|
height:575px;
|
|
background-color:#F3F3F3;
|
|
}
|
|
.postin_edit_portlet[Data-page="1"]{
|
|
height:575px;
|
|
width:100%;
|
|
}
|
|
.postin_edit_portlet > .label_to_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:7px;
|
|
left:2px;
|
|
width:67px;
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_to_ctrl {
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_to_ctrl {
|
|
overflow:hidden;
|
|
text-align:right;
|
|
}
|
|
.postin_edit_portlet > .usercode_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:5px;
|
|
left:70px;
|
|
width:238px;
|
|
height:23px;
|
|
}
|
|
.postin_edit_portlet > .label_validity_start_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:10px;
|
|
right:347px;
|
|
width:96px;
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_validity_start_ctrl {
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_validity_start_ctrl {
|
|
overflow:hidden;
|
|
text-align:right;
|
|
}
|
|
.postin_edit_portlet > .datestart_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:6px;
|
|
right:246px;
|
|
width:100px;
|
|
height:23px;
|
|
}
|
|
.postin_edit_portlet > .datestart_ctrl {
|
|
}
|
|
.postin_edit_portlet > .datestart_ctrl > input{
|
|
vertical-align:top;
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
font-family:verdana;
|
|
width:100%;
|
|
height:100%;
|
|
}
|
|
.postin_edit_portlet > .label_validity_end_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:10px;
|
|
right:132px;
|
|
width:81px;
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_validity_end_ctrl {
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_validity_end_ctrl {
|
|
overflow:hidden;
|
|
text-align:right;
|
|
}
|
|
.postin_edit_portlet > .datestop_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:6px;
|
|
right:31px;
|
|
width:100px;
|
|
height:23px;
|
|
}
|
|
.postin_edit_portlet > .datestop_ctrl {
|
|
}
|
|
.postin_edit_portlet > .datestop_ctrl > input{
|
|
vertical-align:top;
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
font-family:verdana;
|
|
width:100%;
|
|
height:100%;
|
|
}
|
|
.postin_edit_portlet > .label_subject_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:36px;
|
|
left:2px;
|
|
width:67px;
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_subject_ctrl {
|
|
height:auto;
|
|
min-height:20px;
|
|
}
|
|
.postin_edit_portlet > .label_subject_ctrl {
|
|
overflow:hidden;
|
|
text-align:right;
|
|
}
|
|
.postin_edit_portlet > .subject_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:34px;
|
|
left:70px;
|
|
right:10px;
|
|
width:auto;
|
|
height:23px;
|
|
}
|
|
.postin_edit_portlet > .subject_ctrl {
|
|
}
|
|
.postin_edit_portlet > .subject_ctrl > input{
|
|
vertical-align:top;
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
font-family:verdana;
|
|
width:100%;
|
|
height:100%;
|
|
}
|
|
.postin_edit_portlet > .postin_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:80px;
|
|
left:5px;
|
|
right:5px;
|
|
width:auto;
|
|
height:435px;
|
|
}
|
|
.postin_edit_portlet > .button_send_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:531px;
|
|
right:100px;
|
|
width:77px;
|
|
height:28px;
|
|
}
|
|
.postin_edit_portlet > .button_send_ctrl {
|
|
}
|
|
.postin_edit_portlet > .button_cancel_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:531px;
|
|
right:10px;
|
|
width:77px;
|
|
height:28px;
|
|
}
|
|
.postin_edit_portlet > .button_cancel_ctrl {
|
|
}
|
|
.postin_edit_portlet > .btn_open_start_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:10px;
|
|
right:218px;
|
|
width:20px;
|
|
height:20px;
|
|
}
|
|
.postin_edit_portlet > .btn_open_start_ctrl {
|
|
text-decoration:none;
|
|
font-family:icons8_win10;
|
|
text-align:center;
|
|
line-height:20px;
|
|
font-size:20px;
|
|
}
|
|
.postin_edit_portlet > .btn_open_stop_ctrl {
|
|
box-sizing:border-box;
|
|
z-index:1;
|
|
position:absolute;
|
|
display:inline-block;
|
|
top:10px;
|
|
right:5px;
|
|
width:20px;
|
|
height:20px;
|
|
}
|
|
.postin_edit_portlet > .btn_open_stop_ctrl {
|
|
text-decoration:none;
|
|
font-family:icons8_win10;
|
|
text-align:center;
|
|
line-height:20px;
|
|
font-size:20px;
|
|
}
|
|
<%}else if(sp.getParameter("SpWireframe","").equals("true")){
|
|
String containerId=sp.getParameter("containerID",idPortlet);
|
|
Library.SetMimeType(response,"text/html");
|
|
response.setDateHeader("Last-Modified",new Date().getTime() - 604800000L);
|
|
response.setDateHeader("Expires", new Date().getTime() + 604800000L);
|
|
response.setHeader("Cache-Control","public");
|
|
PrintWireFrame(containerId,out);
|
|
%>
|
|
<%!
|
|
void PrintWireFrame(String containerId, java.io.Writer out) throws java.lang.Throwable {
|
|
String def="[{\"h\":\"575\",\"layout_steps_values\":{},\"pages_names\":\"Edit Post-It\",\"steps\":\"\",\"title\":\"default\",\"type\":\"Form\",\"v_line\":\"800\",\"w\":\"100%\",\"wizard\":\"\"},{\"align\":\"right\",\"anchor\":\"top-left\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"page\":\"1\",\"type\":\"Label\",\"value\":\"POSTIT_TO:\",\"w\":\"67\",\"x\":\"2\",\"y\":\"7\",\"zindex\":\"1\"},{\"anchor\":\"top-left\",\"h\":\"23\",\"layout_steps_values\":{},\"name\":\"usercode\",\"page\":\"1\",\"textlist\":\"name\",\"type\":\"Combobox\",\"w\":\"238\",\"x\":\"70\",\"y\":\"5\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"top-right\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"label_validity_start\",\"page\":\"1\",\"type\":\"Label\",\"value\":\"POSTIT_VALIDITY_START:\",\"w\":\"96\",\"x\":\"357\",\"y\":\"10\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"23\",\"layout_steps_values\":{},\"name\":\"datestart\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"100\",\"x\":\"454\",\"y\":\"6\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"top-right\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"label_validity_end\",\"page\":\"1\",\"type\":\"Label\",\"value\":\"POSTIT_VALIDITY_END:\",\"w\":\"81\",\"x\":\"587\",\"y\":\"10\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"23\",\"layout_steps_values\":{},\"name\":\"datestop\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"100\",\"x\":\"669\",\"y\":\"6\",\"zindex\":\"1\"},{\"align\":\"right\",\"anchor\":\"\",\"h\":\"20\",\"layout_steps_values\":{},\"n_col\":\"1\",\"name\":\"label_subject\",\"page\":\"1\",\"type\":\"Label\",\"value\":\"POSTIT_SUBJECT:\",\"w\":\"67\",\"x\":\"2\",\"y\":\"36\",\"zindex\":\"1\"},{\"anchor\":\"top-left-right\",\"h\":\"23\",\"layout_steps_values\":{},\"name\":\"subject\",\"page\":\"1\",\"type\":\"Textbox\",\"w\":\"720\",\"x\":\"70\",\"y\":\"34\",\"zindex\":\"1\"},{\"anchor\":\"top-left-right\",\"h\":\"435\",\"layout_steps_values\":{},\"name\":\"postin\",\"page\":\"1\",\"type\":\"TinyMce\",\"w\":\"790\",\"x\":\"5\",\"y\":\"80\",\"zindex\":\"\"},{\"anchor\":\"top-right\",\"h\":\"28\",\"layout_steps_values\":{},\"name\":\"button_send\",\"page\":\"1\",\"type\":\"Button\",\"value\":\"POSTIT_SEND\",\"w\":\"77\",\"x\":\"623\",\"y\":\"531\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"28\",\"layout_steps_values\":{},\"name\":\"button_cancel\",\"page\":\"1\",\"type\":\"Button\",\"value\":\"POSTIT_CANCEL\",\"w\":\"77\",\"x\":\"713\",\"y\":\"531\",\"zindex\":\"1\"},{\"h\":\"30\",\"name\":\"splinker_send\",\"page\":\"1\",\"type\":\"SPLinker\",\"w\":\"30\",\"x\":\"824\",\"y\":\"-30\"},{\"h\":\"30\",\"name\":\"dataobj_users\",\"page\":\"1\",\"type\":\"SQLDataobj\",\"w\":\"30\",\"x\":\"859\",\"y\":\"-30\"},{\"h\":\"22\",\"name\":\"createdby\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"100\",\"x\":\"822\",\"y\":\"2\"},{\"h\":\"22\",\"name\":\"folder\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"100\",\"x\":\"822\",\"y\":\"26\"},{\"h\":\"22\",\"name\":\"father\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"100\",\"x\":\"822\",\"y\":\"50\"},{\"h\":\"22\",\"name\":\"checked\",\"page\":\"1\",\"type\":\"Variable\",\"w\":\"100\",\"x\":\"822\",\"y\":\"74\"},{\"anchor\":\"top-right\",\"h\":\"20\",\"layout_steps_values\":{},\"name\":\"btn_open_start\",\"page\":\"1\",\"type\":\"Image\",\"w\":\"20\",\"x\":\"562\",\"y\":\"10\",\"zindex\":\"1\"},{\"anchor\":\"top-right\",\"h\":\"20\",\"layout_steps_values\":{},\"name\":\"btn_open_stop\",\"page\":\"1\",\"type\":\"Image\",\"w\":\"20\",\"x\":\"775\",\"y\":\"10\",\"zindex\":\"1\"}]";
|
|
out.write("<script src='../"+SPPrxycizer.proxycizedPath("stdFunctions.js")+"'></script>\n");
|
|
out.write("<script src='../"+SPPrxycizer.proxycizedPath("portalstudio/renderDef.js")+"'></script>\n");
|
|
out.write("<script src='../"+SPPrxycizer.proxycizedPath("visualweb/itemsObj.js")+"'></script>\n");
|
|
out.write("<link type='text/css' rel='STYLESHEET' href='../visualweb/itemsObj.css'></script>\n");
|
|
out.write("<link type='text/css' rel='STYLESHEET' href='../portalstudio/renderDef.css'></script>\n");
|
|
out.write("<div id="+JSPLib.ToHTMLValue(containerId)+"></div>\n");
|
|
out.write("<script> /*JS_MARKER_START*/\n");
|
|
out.write("new renderDef({\n");
|
|
out.write("def: "+def+",\n");
|
|
out.write("container: '"+JSPLib.ToJSValue(containerId)+"',\n");
|
|
out.write("replaceContainer: true\n");
|
|
out.write("})\n");
|
|
out.write("/*JS_MARKER_END*/ </script>\n");
|
|
}/**/%>
|
|
<%}else{
|
|
if (JSPLib.checkApplication(request, response, out, sp, 37,"postin_edit","UTF-8")) {return; }
|
|
%><%boolean included=request.getAttribute("javax.servlet.include.request_uri")!=null || "true".equals(request.getParameter("clientsideinclusion"));
|
|
Map<String,String> safe_params;
|
|
if(!included){%>
|
|
<!DOCTYPE html>
|
|
<html >
|
|
<%}
|
|
if(!included){%>
|
|
<head>
|
|
<base href=<%=JSPLib.ToHTMLValue( JSPLib.SPWebRootURL(request)+"/jsp-system/postin_edit_portlet.jsp"+(!Library.Empty(request.getQueryString())?"?"+request.getQueryString():"") )%>/>
|
|
<%Library.WriteMetaTags(request,response,out);
|
|
}
|
|
sp.WritePortletJSLibraries(request, out, false,false); %><script>
|
|
/*JS_MARKER_START*/
|
|
<%PrintTranslations(out, sp, request, response, idPortlet);%>
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<% sp.WritePortalStudioCSS(request, out);
|
|
if(Library.IsMobile(request)){%><%}%>
|
|
<link id='<%=idPortlet%>_link_css' href='<%=JSPLib.getJSPSelfPath(request)%>?SpCssCode=<%=m_cJSPUID%>' onload="
|
|
requestAnimationFrame( function() {
|
|
this.setAttribute('css-applied', 'true');
|
|
this.dispatchEvent(new CustomEvent('cssApplied'));
|
|
}.bind(this));"
|
|
rel='stylesheet' type='text/css'/>
|
|
<style>
|
|
|
|
</style>
|
|
<script src="../<%=SPPrxycizer.proxycizedPath("controls.js")%>"></script>
|
|
<script src="../<%=SPPrxycizer.proxycizedPath(""+sp.getTheme()+"/calendar.js")%>"></script>
|
|
<script src="../<%=SPPrxycizer.proxycizedPath("postin_help.js")%>"></script>
|
|
<script>
|
|
/*JS_MARKER_START*/
|
|
ZtVWeb.POM.addObj('<%=idPortlet%>','postin_edit','portletObj','<%=JSPLib.ToJSValue(SPParentObjId,false,true)%>');
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<%String label_to= "POSTIT_TO:";
|
|
String usercode= "";
|
|
String label_validity_start= "POSTIT_VALIDITY_START:";
|
|
java.sql.Date datestart= JSPLib.NullDate();
|
|
if(request.getAttribute("postin_edit_firstinclusion")==null){
|
|
if (Library.IsMobile(request)) {%><link rel='prefetch' as='script' id='controls.js' href='../<%=SPPrxycizer.proxycizedPath("controls.js") %>'>
|
|
<link rel='prefetch' as='script' id='calculator.mobile.js' href='../<%=SPPrxycizer.proxycizedPath(sp.getSkin()+"/calculator.mobile.js") %>'>
|
|
<% } %><%}
|
|
String label_validity_end= "POSTIT_VALIDITY_END:";
|
|
java.sql.Date datestop= JSPLib.NullDate();
|
|
String label_subject= "POSTIT_SUBJECT:";
|
|
String subject= "";
|
|
if(request.getAttribute("postin_edit_firstinclusion")==null){%>
|
|
<script type='text/javascript' src='../<%=SPPrxycizer.proxycizedPath("tiny_mce/tinymce.js")%>'></script>
|
|
<script type='text/javascript' src='../<%=SPPrxycizer.proxycizedPath("TinyMceObj.js")%>'></script>
|
|
<%}
|
|
double createdby= 0;
|
|
boolean folder=false;
|
|
String father="";
|
|
boolean checked=false;
|
|
try{
|
|
if(!included){%>
|
|
<link rel='shortcut icon' href='../favicon.ico' />
|
|
</head>
|
|
<%}
|
|
if(!included){%>
|
|
<body style="margin:0;background-color:transparent;"<%= sp.GetBodyClassAttribute() %>>
|
|
<%= Sitepainter.GetBodyMobileScript(request) %><%}%>
|
|
<div id='<%=idPortlet%>_<%=m_cTITLEUID%>_title_container' class='postin_edit_title_container' style='width:100%'>
|
|
<%out.flush();
|
|
if(!Library.includeResource(request,response,"/"+sp.getSkin()+"/jsp-decorators/custom_toolbar_portlet.jsp?ForcedPortletUID="+idPortlet+"_"+m_cTITLEUID+"",true))
|
|
if(!Library.includeResource(request,response,"/jsp-decorators/custom_toolbar_portlet.jsp?ForcedPortletUID="+idPortlet+"_"+m_cTITLEUID+"",true))
|
|
Library.includeResource(request,response,"/jsp/custom_toolbar_portlet.jsp?ForcedPortletUID="+idPortlet+"_"+m_cTITLEUID+"",false);%>
|
|
</div>
|
|
<div id='<%=idPortlet%>_container' class='postin_edit_container'>
|
|
<div id='<%=idPortlet%>' portlet_id='<%=idPortlet%>' align='left' class='postin_edit_portlet portlet' style='opacity:0.001'>
|
|
<%if(sp.isLogged()){
|
|
if(sp.isInGroup(1) && sp.getGlobal("g_EditPortlet",false)==true){%>
|
|
<script>
|
|
ZtVWeb.AddPortletToEdit('postin_edit','<%=idPortlet%>',false,'');
|
|
</script><%}}%>
|
|
<span id='<%=idPortlet%>_label_to' formid='<%=idPortlet%>' ps-name='label_to' class='label label_to_ctrl'><div id='<%=idPortlet%>_label_totbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("POSTIT_TO:"))%></div></span>
|
|
<select id='<%=idPortlet%>_usercode' name='usercode' class='combobox' style=''></select>
|
|
<span id='<%=idPortlet%>_label_validity_start' formid='<%=idPortlet%>' ps-name='label_validity_start' class='label label_validity_start_ctrl'><div id='<%=idPortlet%>_label_validity_starttbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("POSTIT_VALIDITY_START:"))%></div></span>
|
|
<span class='textbox-container'id='<%=idPortlet%>_datestart_wrp'><input id='<%=idPortlet%>_datestart' name='datestart' type='text' class='textbox' formid='<%=idPortlet%>' ps-name='datestart' data-sp-item-say-pict='DD-MM-YYYY' data-sp-item-get-pict='DD-MM-YYYY' /></span>
|
|
<span id='<%=idPortlet%>_label_validity_end' formid='<%=idPortlet%>' ps-name='label_validity_end' class='label label_validity_end_ctrl'><div id='<%=idPortlet%>_label_validity_endtbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("POSTIT_VALIDITY_END:"))%></div></span>
|
|
<span class='textbox-container'id='<%=idPortlet%>_datestop_wrp'><input id='<%=idPortlet%>_datestop' name='datestop' type='text' class='textbox' formid='<%=idPortlet%>' ps-name='datestop' data-sp-item-say-pict='DD-MM-YYYY' data-sp-item-get-pict='DD-MM-YYYY' /></span>
|
|
<span id='<%=idPortlet%>_label_subject' formid='<%=idPortlet%>' ps-name='label_subject' class='label label_subject_ctrl'><div id='<%=idPortlet%>_label_subjecttbl' style='width:100%;'><%=JSPLib.ToHTML(sp.translate("POSTIT_SUBJECT:"))%></div></span>
|
|
<span class='textbox-container'id='<%=idPortlet%>_subject_wrp'><input id='<%=idPortlet%>_subject' name='subject' type='text' class='textbox' formid='<%=idPortlet%>' ps-name='subject' /></span>
|
|
<div id='<%=idPortlet%>_postin'>
|
|
<div id='<%=idPortlet%>_postin_editor'></div>
|
|
</div>
|
|
<input id='<%=idPortlet%>_button_send' type='button' class='button button_send_ctrl'/>
|
|
<input id='<%=idPortlet%>_button_cancel' type='button' class='button button_cancel_ctrl'/>
|
|
<a id='<%=idPortlet%>_btn_open_start' class='image btn_open_start_ctrl' href='javascript:void(0)' target='_self'></a>
|
|
<a id='<%=idPortlet%>_btn_open_stop' class='image btn_open_stop_ctrl' href='javascript:void(0)' target='_self'></a>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
/*JS_MARKER_START*/
|
|
ZtVWeb.addPortlet('<%=idPortlet%>','postin_edit');
|
|
<%!
|
|
void PrintTranslations(java.io.Writer out, Sitepainter sp, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String idPortlet) throws java.lang.Throwable {
|
|
String m_cVariantFolder = request.getAttribute("m_cVariantFolder") != null ? (String)request.getAttribute("m_cVariantFolder") : "";
|
|
String m_cVariant = request.getAttribute("m_cVariant") != null ? (String)request.getAttribute("m_cVariant") : "";
|
|
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_DELETING",true)+","+JSPLib.ToJSValue(sp.translate("MSG_DELETING"),true)+");\n");
|
|
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_PROCEED_WITH_DELETE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_PROCEED_WITH_DELETE"),true)+");\n");
|
|
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_ROUTINE_WAIT",true)+","+JSPLib.ToJSValue(sp.translate("MSG_ROUTINE_WAIT"),true)+");\n");
|
|
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("MSG_WRONG_DATE",true)+","+JSPLib.ToJSValue(sp.translate("MSG_WRONG_DATE"),true)+");\n");
|
|
out.write("ZtVWeb.AddTranslation("+JSPLib.ToJSValue("POSTIT_CREATE_NEW_MESSAGE",true)+","+JSPLib.ToJSValue(sp.translate("POSTIT_CREATE_NEW_MESSAGE"),true)+");\n");
|
|
}/**/%>
|
|
window.<%=idPortlet%>=new function(){
|
|
var m_cSPPageletId = '<%=JSPLib.ToJSValue(PageletId,false,true)%>';
|
|
var m_cSPPortletTitleId = '<%=JSPLib.ToJSValue(SPPortletTitleId,false,true)%>';
|
|
ZtVWeb.newForm(this,'<%=idPortlet%>','postin_edit',["800"],["575"],'portlet',<%=sp.isOfflineInstallation()%>,false,m_cSPPageletId,'', '','<%=m_cTITLEUID%>','',{},false,false,1,m_cSPPortletTitleId, 'NORMAL',[{"layout_steps_values":{},"w":"800","h":"575","title":"Edit Post-It","layer":""}]);
|
|
this.label_to=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"label","create_undercond":"","ctrlid":"<%=idPortlet%>_label_to","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":true,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"label_to","nowrap":"false","page":1,"picture":"","sanitize":"xssPrevent","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(label_to),false,true)%>","type":"Label","w":67,"x":2,"y":7,"zindex":"1"});
|
|
this.usercode=new ZtVWeb.ComboboxCtrl(this,{"anchor":"top-left","calculate":"","class_Css":"combobox","create_undercond":"","ctrlid":"<%=idPortlet%>_usercode","dataobj_value":"","decrypt":false,"disabled":false,"edit_undercond":"","empty_value":true,"encrypt":false,"field":"","font":"","font_size":"","h":23,"help_tips":"","hide":"false","hide_undercond":"","init":"","init_par":"<%=usercode%>","isdatap":true,"layer":false,"layout_steps_values":{},"name":"usercode","page":1,"picture":"","reactive":false,"server_side":"","spuid":"","tabindex":"","textlist":"name","type":"Combobox","typevar":"character","valuelist":"code","visible":true,"w":238,"x":70,"y":5,"zindex":"1"});
|
|
this.label_validity_start=new ZtVWeb._LC(this,{"align":"right","anchor":"top-right","assoc_input":"","calculate":"","class_Css":"label","create_undercond":"","ctrlid":"<%=idPortlet%>_label_validity_start","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":true,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"label_validity_start","nowrap":"false","page":1,"picture":"","sanitize":"xssPrevent","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(label_validity_start),false,true)%>","type":"Label","w":96,"x":357,"y":10,"zindex":"1"});
|
|
this.datestart=new ZtVWeb._TC(this,{"anchor":"top-right","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"<%=idPortlet%>_datestart","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":23,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"","name":"datestart","page":1,"picker":"","picture":"DD-MM-YYYY","reactive":false,"readonly":"false","server_side":"","spuid":"","type":"Textbox","typehtml5":"","typevar":"date","value":"<%=datestart%>","w":100,"x":454,"y":6,"zerofilling":false,"zindex":"1","zoom":""});
|
|
this.label_validity_end=new ZtVWeb._LC(this,{"align":"right","anchor":"top-right","assoc_input":"","calculate":"","class_Css":"label","create_undercond":"","ctrlid":"<%=idPortlet%>_label_validity_end","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":true,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"label_validity_end","nowrap":"false","page":1,"picture":"","sanitize":"xssPrevent","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(label_validity_end),false,true)%>","type":"Label","w":81,"x":587,"y":10,"zindex":"1"});
|
|
this.datestop=new ZtVWeb._TC(this,{"anchor":"top-right","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"<%=idPortlet%>_datestop","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":23,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"","name":"datestop","page":1,"picker":"","picture":"DD-MM-YYYY","reactive":false,"readonly":"false","server_side":"","spuid":"","type":"Textbox","typehtml5":"","typevar":"date","value":"<%=datestop%>","w":100,"x":669,"y":6,"zerofilling":false,"zindex":"1","zoom":""});
|
|
this.label_subject=new ZtVWeb._LC(this,{"align":"right","anchor":"top-left","assoc_input":"","calculate":"","class_Css":"label","create_undercond":"","ctrlid":"<%=idPortlet%>_label_subject","draggable":"","draggable_name":"","droppable":"","droppable_name":"","edit_undercond":"","enable_HTML":true,"field":"","font":"","font_color":"","font_size":"","font_weight":"","fontpct":"","h":20,"heading":"","help_tips":"","hide":"false","hide_undercond":"","href":"","init":"","layer":false,"layout_steps_values":{},"n_col":1,"name":"label_subject","nowrap":"false","page":1,"picture":"","sanitize":"xssPrevent","sanitize_tags":"","server_side":"","shrinkable":"","spuid":"","tabindex":"","target":"","template":"","text":"<%=JSPLib.ToJSValue(sp.translate(label_subject),false,true)%>","type":"Label","w":67,"x":2,"y":36,"zindex":"1"});
|
|
this.subject=new ZtVWeb._TC(this,{"anchor":"top-left-right","autocomplete":"","calculate":"","create_undercond":"","ctrlid":"<%=idPortlet%>_subject","decrypt":false,"edit_undercond":"","encrypt":false,"field":"","fixed":"","floating_placeholder":false,"h":23,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"","hide_undercond":"","init":"","init_par":"","layer":false,"layout_steps_values":{},"maxlength":"","name":"subject","page":1,"picker":"","picture":"","reactive":false,"readonly":"false","server_side":"","spuid":"","type":"Textbox","typehtml5":"","typevar":"character","value":"<%=JSPLib.ToJSValue(subject,false,true)%>","w":720,"x":70,"y":34,"zerofilling":false,"zindex":"1","zoom":""});
|
|
this.postin=new ZtVWeb.TinyMceCtrl(this,{"anchor":"top-left-right","css_file":"","ctrlid":"<%=idPortlet%>_postin","h":435,"hide":"false","layer":false,"layout_steps_values":{},"name":"postin","page":1,"spuid":"","tb_aligncenter":true,"tb_alignjustify":true,"tb_alignleft":true,"tb_alignright":true,"tb_bold":true,"tb_bookmark":false,"tb_charmap":false,"tb_code":false,"tb_custombutton":"","tb_customconfig":"","tb_custominit":false,"tb_custommenubar":"","tb_customplugin":"","tb_edit":false,"tb_emoticons":false,"tb_file":false,"tb_format":false,"tb_hr":false,"tb_image":false,"tb_insert":false,"tb_insertdatetime":false,"tb_italic":true,"tb_link":false,"tb_media":false,"tb_nonbreaking":false,"tb_paste":false,"tb_preview":false,"tb_print":false,"tb_redo":true,"tb_save":false,"tb_searchreplace":false,"tb_styleselect":true,"tb_table":false,"tb_tablemenubar":false,"tb_textcol":false,"tb_tools":false,"tb_underline":true,"tb_undo":true,"tb_view":false,"type":"TinyMce","w":790,"x":5,"y":80,"zindex":""});
|
|
this.postin.initEditor();
|
|
this.button_send=new ZtVWeb._BC(this,{"anchor":"top-right","bg_color":"","border_color":"","border_weight":"","class_Css":"button button_send_ctrl","create_undercond":"","ctrlid":"<%=idPortlet%>_button_send","edit_undercond":"","font":"","font_color":"","font_size":"","h":28,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","layer":false,"layout_steps_values":{},"name":"button_send","page":1,"spuid":"","tabindex":"","text":"<%=JSPLib.ToJSValue(sp.translate("POSTIT_SEND"),false,true)%>","type":"Button","type_submit":"false","type_wizard":"","w":77,"x":623,"y":531,"zindex":"1"});
|
|
this.button_cancel=new ZtVWeb._BC(this,{"anchor":"top-right","bg_color":"","border_color":"","border_weight":"","class_Css":"button button_cancel_ctrl","create_undercond":"","ctrlid":"<%=idPortlet%>_button_cancel","edit_undercond":"","font":"","font_color":"","font_size":"","h":28,"help_tips":"<%=JSPLib.ToJSValue(sp.translate(""),false,true)%>","hide":"false","hide_undercond":"","layer":false,"layout_steps_values":{},"name":"button_cancel","page":1,"spuid":"","tabindex":"","text":"<%=JSPLib.ToJSValue(sp.translate("POSTIT_CANCEL"),false,true)%>","type":"Button","type_submit":"false","type_wizard":"","w":77,"x":713,"y":531,"zindex":"1"});
|
|
this.splinker_send=new ZtVWeb.SPLinkerCtrl(this,{"action":"writeload","allowedEntities":"","anchor":"","async":false,"check_exp":"","ctrlid":"<%=idPortlet%>_splinker_send","decrypted_parms":"","entity_type":"master","force_msg_id":false,"h":30,"hide":"false","layer":false,"layout_steps_values":{},"m_cAltInterface":"","name":"splinker_send","offline":false,"page":1,"parms":"usercode,subject,postit=postin,createdby,datestart,datestop","popup":"false","popup_height":"","popup_maximized":"false","popup_scroll":"false","popup_style":"by skin","popup_width":"","progressbar":false,"refresh":"","servlet":"postin","target":"","type":"SPLinker","w":30,"x":824,"y":-30});
|
|
this.splinker_send.m_cID='<%=JSPLib.cmdHash("entity,postin",request.getSession())%>';
|
|
this.dataobj_users=new ZtVWeb._SQP(this,{"allowedcmds":"","anchor":"","appendingData":false,"async":false,"auto_exec":"true","cmd":"postin_users","cmdHash":"<%=JSPLib.cmdHash("postin_users",request.getSession())%>","count":"false","ctrlid":"<%=idPortlet%>_dataobj_users","decrypted_parms":"","dialog_css_class":"sqldataprovider","encrypted_fields":"","fieldstype":"true","h":30,"hide":"false","init_time":0,"layer":false,"layout_steps_values":{},"localDBName":"","long_query":false,"name":"dataobj_users","nrows":"100","page":1,"parms":"","parms_source":"","type":"SQLDataobj","w":30,"waiting_mgs":"<%=JSPLib.ToJSValue(sp.translate(""))%>","x":859,"y":-30});
|
|
this.createdby=new ZtVWeb._VC(this,'createdby',null,'numeric',<%=createdby%>,false,false);
|
|
this.folder=new ZtVWeb._VC(this,'folder',null,'logic',<%=folder%>,false,false);
|
|
this.father=new ZtVWeb._VC(this,'father',null,'character','<%=JSPLib.ToJSValue(father,false,true)%>',false,false);
|
|
this.checked=new ZtVWeb._VC(this,'checked',null,'logic',<%=checked%>,false,false);
|
|
this.btn_open_start=new ZtVWeb._IC(this,{"alt":"","anchor":"top-right","boundedPosition":"","class_Css":"image btn_open_start_ctrl","create_undercond":"","ctrlid":"<%=idPortlet%>_btn_open_start","edit_undercond":"","field":"","font_color":"","font_color_hover":"","font_image":"","font_image_hover":"","font_name":"icons8_win10","font_path":"","font_size":"","h":20,"help_tips":"<%=JSPLib.ToJSValue(sp.translate("MSG_OPEN_CALENDAR"),false,true)%>","hide":"false","hide_undercond":"","href":"javascript:void(0)","img_type":"font icon","keepProportions":"true","layer":false,"layout_steps_values":{},"name":"btn_open_start","page":1,"path_type":"skin","server_side":"","spuid":"","src":"","srchover":"","tabindex":"","target":"_self","type":"Image","type_submit":"false","w":20,"x":562,"y":10,"zindex":"1"});
|
|
ZtVWeb.RequireFont("icons8_win10","");
|
|
this.btn_open_stop=new ZtVWeb._IC(this,{"alt":"","anchor":"top-right","boundedPosition":"","class_Css":"image btn_open_stop_ctrl","create_undercond":"","ctrlid":"<%=idPortlet%>_btn_open_stop","edit_undercond":"","field":"","font_color":"","font_color_hover":"","font_image":"","font_image_hover":"","font_name":"icons8_win10","font_path":"","font_size":"","h":20,"help_tips":"<%=JSPLib.ToJSValue(sp.translate("MSG_OPEN_CALENDAR"),false,true)%>","hide":"false","hide_undercond":"","href":"javascript:void(0)","img_type":"font icon","keepProportions":"true","layer":false,"layout_steps_values":{},"name":"btn_open_stop","page":1,"path_type":"","server_side":"","spuid":"","src":"","srchover":"","tabindex":"","target":"_self","type":"Image","type_submit":"false","w":20,"x":775,"y":10,"zindex":"1"});
|
|
ZtVWeb.RequireFont("icons8_win10","");
|
|
<%if(!Library.Empty(PageletId) ){%>
|
|
this.PageletCalc=function(){
|
|
if(window['<%=JSPLib.ToJSValue(PageletId)%>'] && window['<%=JSPLib.ToJSValue(PageletId)%>'].Calc ) {
|
|
window['<%=JSPLib.ToJSValue(PageletId)%>'].Calc();
|
|
};
|
|
}
|
|
<%}%>
|
|
|
|
}
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<%request.setAttribute("postin_edit_firstinclusion",idPortlet);%>
|
|
<script>
|
|
/*JS_MARKER_START*/
|
|
window.postin_edit_Static=function(){
|
|
if(typeof this_Loaded !='undefined')this.this_Loaded=this_Loaded;
|
|
if(typeof button_send_Click !='undefined')this.button_send_Click=button_send_Click;
|
|
if(typeof button_cancel_Click !='undefined')this.button_cancel_Click=button_cancel_Click;
|
|
if(typeof splinker_send_Updated !='undefined')this.splinker_send_Updated=splinker_send_Updated;
|
|
if(typeof btn_open_start_Click !='undefined')this.btn_open_start_Click=btn_open_start_Click;
|
|
if(typeof btn_open_stop_Click !='undefined')this.btn_open_stop_Click=btn_open_stop_Click;
|
|
<%if(!Library.Empty(PageletId) ){%>
|
|
this.this_Calc=function(){
|
|
this.PageletCalc();
|
|
}
|
|
<%}%>
|
|
this.dataobj_users.addRowConsumer(this.usercode);
|
|
function this_Loaded(){
|
|
var customToolbar=this.getTitlePortlet();
|
|
customToolbar.AddButton(SPTheme.controlPanelHelp || '<%=sp.getThemedImage("../images/custom_toolbar/help.png",pageContext.getServletContext())%>',
|
|
'javascript:Help()','','<%=sp.translate("ADMIN_HELP")%>','<%=sp.translate("ADMIN_HELP")%>');
|
|
customToolbar.SetTitle(FormatMsg('POSTIT_CREATE_NEW_MESSAGE'));
|
|
customToolbar.RearrangeAll();
|
|
}
|
|
m_cLanguage='<%=sp.getLanguage()%>';
|
|
m_cProgName="postin_new";
|
|
document.title="<%=sp.translate("POSTIT_CREATE_NEW_MESSAGE")%>";
|
|
function button_send_Click(){
|
|
this.createdby.Value(<%=sp.getUserCode()%>);
|
|
if(this.usercode.Value()=='') this.usercode.Value('1');
|
|
if(this.datestart.Value()==null){
|
|
this.datestart.Value(new Date());
|
|
}
|
|
this.splinker_send.Link();
|
|
}
|
|
function button_cancel_Click(){
|
|
window.close();
|
|
}
|
|
function splinker_send_Updated(){
|
|
window.close();
|
|
}
|
|
function btn_open_start_Click(){
|
|
PrepareJsCalendar(false);
|
|
LaunchCalendar(this.datestart.Ctrl_input,"DD-MM-YYYY");
|
|
}
|
|
function btn_open_stop_Click(){
|
|
PrepareJsCalendar(false);
|
|
LaunchCalendar(this.datestop.Ctrl_input,"DD-MM-YYYY");
|
|
}
|
|
|
|
this.dispatchEvent('HideUnderCondition');
|
|
this.dispatchEvent('EditUnderCondition');
|
|
}
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<script>
|
|
/*JS_MARKER_START*/
|
|
window.postin_edit_Static.call(window.<%=idPortlet%>);
|
|
window.<%=idPortlet%>.btn_open_start.dispatchEvent('OnLoad');
|
|
window.<%=idPortlet%>.btn_open_stop.dispatchEvent('OnLoad');
|
|
window.<%=idPortlet%>.dataobj_users.firstQuery('true');
|
|
ZtVWeb.addPortletObj('<%=idPortlet%>','postin_edit',<%=idPortlet%>);
|
|
ZtVWeb.portletLoaded(<%=idPortlet%>,'postin_edit');
|
|
/*JS_MARKER_END*/
|
|
</script>
|
|
<%if(!included){%>
|
|
</body>
|
|
<%}
|
|
}finally{
|
|
}%>
|
|
<%if(!included){%>
|
|
</html>
|
|
<%}
|
|
sp.endPage("postin_edit");
|
|
}%>
|
|
<%! public String getJSPUID() { return "3112917856"; } %> |