Class('App', 'linb.Com',{
Instance:{
//Com events
events:{"onReady":"_onready"},
iniComponents:function(){
// [[code created by jsLinb UI Builder
var host=this, children=[], append=function(child){children.push(child.get(0))};
append(
(new linb.DataBinder)
.setHost(host,"databinder")
.setName("databinder")
);
append(
(new linb.DataBinder)
.setHost(host,"databinder")
.setName("databinder")
);
append(
(new linb.UI.Group)
.setHost(host,"group1")
.setLeft(10)
.setTop(10)
.setWidth(630)
.setHeight(530)
.setZIndex(0)
.setCaption("Sod Up Dated 6/28/2015")
.setImage("http://cgetty.freehostia.com/icon/check.jpeg")
.onIniPanelView("_group1_oninipanelview")
);
host.group1.append(
(new linb.UI.Input)
.setHost(host,"inputFirstName")
.setDataBinder("databinder")
.setDataField("First Name")
.setLeft(2)
.setTop(30)
.setWidth(220)
.setHeight(25)
);
host.group1.append(
(new linb.UI.RichEditor)
.setHost(host,"richeditor1")
.setDataBinder("databinder")
.setDataField("Memo")
.setDisabled(true)
.setLeft(0)
.setTop(140)
.setWidth(620)
.setHeight(310)
);
host.group1.append(
(new linb.UI.SLabel)
.setHost(host,"slabelFirstName")
.setLeft(75)
.setTop(14)
.setWidth(74)
.setHeight(12)
.setCaption("First Name:")
);
host.group1.append(
(new linb.UI.SLabel)
.setHost(host,"slabel2")
.setLeft(0)
.setTop(94)
.setCaption("Email:")
);
host.group1.append(
(new linb.UI.SLabel)
.setHost(host,"ctl_slabel_LastName")
.setLeft(290)
.setTop(15)
.setWidth(74)
.setHeight(12)
.setCaption("Last Name:")
);
host.group1.append(
(new linb.UI.Image)
.setHost(host,"ctl_image4")
.setLeft(460)
.setTop(0)
.setWidth(151)
.setHeight(121)
.setSrc("https://media2.wnyc.org/i/620/350/80/1/3_alfred_neuman_mad_magazine.jpg")
.onClick("_ctl_image4_onclick")
);
host.group1.append(
(new linb.UI.SLabel)
.setHost(host,"ctl_slabelTer")
.setTips("mcelmo@hushmail.com")
.setLeft(350)
.setTop(94)
.setCaption("Terr #")
);
host.group1.append(
(new linb.UI.Image)
.setHost(host,"ctl_image16")
.setTips("Click once for edit mode db click for reading mode")
.setLeft(349)
.setTop(116)
.setWidth(22)
.setHeight(22)
.setSrc("http://cgetty.freehostia.com/icon/azusa_blow.gif")
.onClick("_ctl_image16_onclick")
.onDblclick("_ctl_image16_ondblclick")
);
host.group1.append(
(new linb.UI.Block)
.setHost(host,"ctl_block_source_links")
.setLeft(2)
.setTop(142)
.setWidth(617)
.setHeight(132)
.setVisibility("visible")
.setBorder(true)
.setBorderType("ridge")
);
host.ctl_block_source_links.append(
(new linb.UI.Label)
.setHost(host,"ctl_label2")
.setLeft(500)
.setTop(15)
.setWidth(111)
.setCaption("<- Photo source")
.setHAlign("left")
);
host.ctl_block_source_links.append(
(new linb.UI.Label)
.setHost(host,"ctl_label3")
.setLeft(500)
.setTop(45)
.setWidth(91)
.setCaption("<- More Info")
.setHAlign("left")
);
host.ctl_block_source_links.append(
(new linb.UI.Label)
.setHost(host,"ctl_label4")
.setLeft(500)
.setTop(74)
.setWidth(111)
.setCaption("<- Map Location")
.setHAlign("left")
);
host.ctl_block_source_links.append(
(new linb.UI.Button)
.setHost(host,"ctl_button_close")
.setLeft(241)
.setTop(101)
.setWidth(70)
.setCaption("Close")
.onClick("_ctl_button_close_onclick")
);
host.ctl_block_source_links.append(
(new linb.UI.SLabel)
.setHost(host,"ctl_slabelGoogleMap")
.setLeft(341)
.setTop(101)
.setWidth(214)
.setCaption("")
);
host.ctl_block_source_links.append(
(new linb.UI.Link)
.setHost(host,"ctl_link_google_part_lnk")
.setLeft(11)
.setTop(100)
.setWidth(220)
.setCaption("https://www.google.com/maps?q=")
.setHref("https://www.google.com/maps?q=")
.setTarget("_blank")
.onClick("_ctl_link172_onclick")
);
host.ctl_block_source_links.append(
(new linb.UI.Input)
.setHost(host,"ctl_input_Photo_source")
.setDataBinder("databinder")
.setDataField("PhotoSource")
.setLeft(10)
.setTop(10)
.setWidth(480)
.setTabindex(15)
.setShadow(true)
);
host.ctl_block_source_links.append(
(new linb.UI.Input)
.setHost(host,"ctl_input_more_info_source")
.setDataBinder("databinder")
.setDataField("MoreInfoSource")
.setLeft(10)
.setTop(40)
.setWidth(480)
.setTabindex(16)
.setShadow(true)
);
host.ctl_block_source_links.append(
(new linb.UI.Input)
.setHost(host,"ctl_inputMap_source")
.setDataBinder("databinder")
.setDataField("MapSource")
.setLeft(10)
.setTop(70)
.setWidth(480)
.setTabindex(17)
.setShadow(true)
);
host.group1.append(
(new linb.UI.SLabel)
.setHost(host,"ctl_slabel33")
.setLeft(0)
.setTop(69)
.setWidth(54)
.setHeight(12)
.setCaption("Adress:")
.setHAlign("left")
);
host.group1.append(
(new linb.UI.Image)
.setHost(host,"ctl_image_run_dir_lst")
.setTips("Run File Server manager in new tab")
.setLeft(370)
.setTop(111)
.setWidth(30)
.setHeight(30)
.setSrc("http://cgetty.freehostia.com/icon/64x64_core.png")
.onClick("_ctl_image_run_dir_lst_onclick")
);
host.group1.append(
(new linb.UI.Input)
.setHost(host,"ctl_inputLastName")
.setDataBinder("databinder")
.setDataField("Last Name")
.setLeft(226)
.setTop(30)
.setWidth(220)
.setHeight(25)
.setTabindex(2)
.setDynCheck(true)
);
host.group1.append(
(new linb.UI.Input)
.setHost(host,"ctl_input65")
.setDataBinder("databinder")
.setDataField("address")
.setLeft(60)
.setTop(63)
.setWidth(385)
.setTabindex(3)
);
host.group1.append(
(new linb.UI.Input)
.setHost(host,"inputEmail")
.setDataBinder("databinder")
.setDataField("email")
.setLeft(40)
.setTop(90)
.setWidth(300)
.setTabindex(4)
);
host.group1.append(
(new linb.UI.Input)
.setHost(host,"ctl_inputTer")
.setDataBinder("databinder")
.setDataField("Ter")
.setLeft(398)
.setTop(90)
.setWidth(50)
.setHeight(25)
.setTabindex(5)
);
host.group1.append(
(new linb.UI.Button)
.setHost(host,"ctl_button_Import_data")
.setLeft(2)
.setTop(120)
.setWidth(90)
.setHeight(20)
.setTabindex(6)
.setCaption("Import Data")
.onClick("_ctl_button_import_data_onclick")
);
host.group1.append(
(new linb.UI.Button)
.setHost(host,"ctl_buttonExport_Out")
.setLeft(97)
.setTop(120)
.setWidth(90)
.setHeight(20)
.setTabindex(7)
.setCaption("Export Fields")
.onClick("_ctl_buttonexport_out_onclick")
);
host.group1.append(
(new linb.UI.Image)
.setHost(host,"ctl_image25")
.setTips("Configure Link Paths")
.setLeft(190)
.setTop(120)
.setWidth(20)
.setHeight(20)
.setTabindex(8)
.setSrc("http://cgetty.freehostia.com/icon/64x64_korganizer_todo.png")
.onClick("_ctl_image25_onclick")
);
host.group1.append(
(new linb.UI.Image)
.setHost(host,"ctl_image17")
.setTips("Open up a new tab, copy & paste test data into bottom field")
.setLeft(220)
.setTop(120)
.setWidth(20)
.setHeight(20)
.setTabindex(9)
.setSrc("http://tinyurl.com/n432rla")
.onClick("_ctl_image17_onclick")
);
host.group1.append(
(new linb.UI.Button)
.setHost(host,"ctl_button174")
.setTips("Need To Fix Temp, This button updates the map link, more info link and the photo to sync")
.setLeft(250)
.setTop(124)
.setWidth(20)
.setHeight(12)
.setTabindex(10)
.setCaption("")
.onClick("_ctl_button174_onclick")
);
host.group1.append(
(new linb.UI.Link)
.setHost(host,"ctl_link_map_lnk")
.setLeft(450)
.setTop(124)
.setWidth(90)
.setHeight(12)
.setTabindex(11)
.setCaption("Map Location")
.setHref("")
.setTarget("_blank")
);
host.group1.append(
(new linb.UI.Link)
.setHost(host,"ctl_link_more_info_lnk")
.setLeft(550)
.setTop(124)
.setWidth(70)
.setHeight(12)
.setTabindex(13)
.setCaption("More Info")
.setHref("")
.setTarget("_blank")
);
host.group1.append(
(new linb.UI.Input)
.setHost(host,"ctl_input_Iport_field")
.setTips("Paste test data here, then select Import data button above.")
.setLeft(0)
.setTop(450)
.setWidth(620)
.setHeight(60)
.setTabindex(14)
);
return children;
// ]]code created by jsLinb UI Builder
},
_onready:function () {
SPA=this;
},
_ctl_buttonexport_out_onclick : function (profile,e,src,value){
var data=SPA.databinder.getValue();
if(!data)
alert('Ensure all the fields are valid first!');
else
SPA.ctl_input_Iport_field.setValue(_.serialize(data),true);
},
_ctl_button_import_data_onclick : function (profile,e,src,value){
var ns = this, uictrl = profile.boxing();
SPA.databinder.resetValue( _.unserialize(SPA.ctl_input_Iport_field.getUIValue()) );
ns.ctl_input_Iport_field.setUIValue('');
},
_ctl_image25_onclick : function (profile,e,src){
var ns = this, uictrl = profile.boxing();
ns.ctl_block_source_links.setVisibility('visible');
},
_ctl_button60_onclick : function (profile,e,src,value){
},
_group1_oninipanelview : function (profile){
var ns = this, uictrl = profile.boxing();
ns.ctl_block_source_links.setVisibility('hidden');
},
_ctl_image17_onclick : function (profile,e,src){
linb.Dom.submit('http://mobile1.onlinewebshop.net/sod/tst.db');
},
_ctl_button174_onclick : function (profile,e,src,value){
var ns = this, uictrl = profile.boxing();
var imagename = ns.ctl_input_Photo_source.getUIValue();
ns.ctl_image4.setSrc(imagename);
var map_lnk_v = ns.ctl_inputMap_source.getUIValue(); // working fix
ns.ctl_link_map_lnk.setHref(map_lnk_v);
var more_info_lnk_v = ns.ctl_input_more_info_source.getUIValue();
ns.ctl_link_more_info_lnk.setHref(more_info_lnk_v);
},
_ctl_image16_onclick : function (profile,e,src){
var ns = this, uictrl = profile.boxing();
var elmo = ns.richeditor1.setDisabled(false);
},
_ctl_image16_ondblclick : function (profile,e,src){
var ns = this, uictrl = profile.boxing();
var elmo = ns.richeditor1.setDisabled(true);
},
_ctl_button_close_onclick : function (profile,e,src,value){
var ns = this, uictrl = profile.boxing();
ns.ctl_block_source_links.setVisibility('hidden');
},
_ctl_image_run_dir_lst_onclick : function (profile,e,src){
linb.Dom.submit('http://mobile1.onlinewebshop.net/sod/dl/index.php?folder=ZmlsZXM=');
},
_ctl_link172_onclick : function (profile,e){
var ns = this, uictrl = profile.boxing();
var map_lnk_v1 = ns.ctl_link_google_part_lnk.getHref();
ns.ctl_inputMap_source.setUIValue(map_lnk_v1);
}
}
});
//linb.setAppLangKey('app');
linb.UI.setTheme('default');
linb.Com.load('App', function(){linb('loading').remove()}, 'en');