function companySubscribe (companyEntityId) { $.ajax ( { url: "/app/company/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId,"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#companySubscribe").css("display","none") ; $("#companyUnsubscribe").css("display","block") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUnsubscribe (companyEntityId) { $.ajax ( { url: "/app/company/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId,"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { $("#companySubscribe").css("display","block") ; $("#companyUnsubscribe").css("display","none") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyRate (companyEntityId, rating) { $.ajax ( { url: "/app/company/rate", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId,"userEntityId":session["userEntityId"],"rating":rating/5}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { for (i=1 ; i<=5 ; ++i) $("#companyUserRating"+i).css('color',i<=rating?"black":"gray") ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyDelete (companyEntityId, companyEntityLabel) { if (confirm("Are you sure you want to delete the company "+companyEntityLabel+"?")) $.ajax ( { url: "/app/company/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/list" ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyQuit (companyEntityLabel, companyUserEntityId) { if (confirm("Are you sure you want to quit "+companyEntityLabel+"?")) $.ajax ( { url: "/app/company/user/quit", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"userCompanyEntityId":companyUserEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyApprove (companyEntityId, companyEntityLabel) { if (confirm("Are you sure you want to approve "+companyEntityLabel+"?")) $.ajax ( { url: "/app/company/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUnapprove (companyEntityId, companyEntityLabel) { if (confirm("Are you sure you want to unapprove "+companyEntityLabel+"?")) $.ajax ( { url: "/app/company/unapprove", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyReject (companyEntityId, companyEntityLabel) { if (confirm("Are you sure you want to reject "+companyEntityLabel+"?")) $.ajax ( { url: "/app/company/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUnreject (companyEntityId, companyEntityLabel) { if (confirm("Are you sure you want to unreject "+companyEntityLabel+"?")) $.ajax ( { url: "/app/company/unreject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUserDelete (companyUserEntityId, companyUserEntityLabel) { if (confirm("Are you sure you want to delete the company user "+companyUserEntityLabel+"?")) $.ajax ( { url: "/app/company/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/user/list?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUserResend (companyUserEntityId, companyUserEntityLabel) { if (confirm("Are you sure you want to resend the company user invitation to "+companyUserEntityLabel+"?")) $.ajax ( { url: "/app/company/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUserPublish (companyUserEntityId) { $.ajax ( { url: "/app/company/user/publish", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyUserUnpublish (companyUserEntityId) { $.ajax ( { url: "/app/company/user/unpublish", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function placeDelete (placeEntityId, placeEntityLabel) { if (confirm("Are you sure you want to delete the place "+placeEntityLabel+"?")) $.ajax ( { url: "/app/company/place/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"placeEntityId":placeEntityId}, success: function (data) { if (data["error"]) alert(data["error"]) ; else { window.location = "/company/place/list?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { alert("Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } function companyMenu (companyEntity, list) { document.write(getHttp("/body?name=contact&sct=0&v=1623597208000")) ; if (!list) { document.write(getHttp("/body?name=contact&sct=1&v=1623597208000")) ; } if (validCompany(companyEntity)) { document.write(getHttp("/body?name=contact&sct=2&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=3&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=4&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=5&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=6&v=1623597208000")) ; if (validCompanyUserManager(sessionCompanyUserEntity)||validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=7&v=1623597208000")) ; if (validCompany(companyEntity)) { document.write(getHttp("/body?name=contact&sct=8&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=9&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=10&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=11&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=12&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=13&v=1623597208000")) ; if (validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=contact&sct=14&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=15&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=16&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=17&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=18&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=19&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=20&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=21&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=22&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=23&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=24&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=25&v=1623597208000")) ; if (validSessionAdministrator(session)) { if (!companyEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=26&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=27&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=28&v=1623597208000")) ; } else { document.write(getHttp("/body?name=contact&sct=29&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=30&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=31&v=1623597208000")) ; } if (!companyEntity["rejected"]) { document.write(getHttp("/body?name=contact&sct=32&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=33&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=34&v=1623597208000")) ; } else { document.write(getHttp("/body?name=contact&sct=35&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=36&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=37&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=38&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=39&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=40&v=1623597208000")) ; } } } document.write(getHttp("/body?name=contact&sct=41&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=42&v=1623597208000")) ; } function companyUserMenu (companyEntity, companyUserEntity, list) { if (validCompany(companyEntity)&&(validCompanyUserManager(sessionCompanyUserEntity)||validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session))) { document.write(getHttp("/body?name=contact&sct=43&v=1623597208000")) ; if (!list) { if (validCompanyUserManager(sessionCompanyUserEntity)||validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=contact&sct=44&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=45&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=46&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=47&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=48&v=1623597208000")) ; } } if (validCompanyUser(companyUserEntity)) { document.write(getHttp("/body?name=contact&sct=49&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=50&v=1623597208000")) ; if (validCompanyUserManager(sessionCompanyUserEntity)||validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { if (companyUserEntity["userEntityId"]) { document.write(getHttp("/body?name=contact&sct=51&v=1623597208000")) ;document.write(companyUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=contact&sct=52&v=1623597208000")) ; } if (!companyUserEntity["accepted"]) { document.write(getHttp("/body?name=contact&sct=53&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=54&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=55&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=56&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=57&v=1623597208000")) ; if (!companyUserEntity["accepted"]) { document.write(getHttp("/body?name=contact&sct=58&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=59&v=1623597208000")) ; } else { document.write(getHttp("/body?name=contact&sct=60&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=61&v=1623597208000")) ; } if (!companyUserEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=62&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=63&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=64&v=1623597208000")) ; } else { document.write(getHttp("/body?name=contact&sct=65&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=66&v=1623597208000")) ; } if (!companyUserEntity["published"]) { document.write(getHttp("/body?name=contact&sct=67&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=68&v=1623597208000")) ; } else if (companyUserEntity["published"]) { document.write(getHttp("/body?name=contact&sct=69&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=70&v=1623597208000")) ; } if (validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=contact&sct=71&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=72&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=73&v=1623597208000")) ; } } } document.write(getHttp("/body?name=contact&sct=74&v=1623597208000")) ; } } function placeMenu (companyEntity, placeEntity, list) { document.write(getHttp("/body?name=contact&sct=75&v=1623597208000")) ; if (validCompany(companyEntity)&&!list) { document.write(getHttp("/body?name=contact&sct=76&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=77&v=1623597208000")) ; if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=78&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=79&v=1623597208000")) ; } } if (validPlace(placeEntity)) { document.write(getHttp("/body?name=contact&sct=80&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=81&v=1623597208000")) ; if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=82&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=83&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=84&v=1623597208000")) ; if (validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=contact&sct=85&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=86&v=1623597208000")) ;document.write(placeEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=87&v=1623597208000")) ; } } } document.write(getHttp("/body?name=contact&sct=88&v=1623597208000")) ; } function breadcrumbsCompany (companyEntity) { document.write(getHttp("/body?name=contact&sct=89&v=1623597208000")) ; if (validCompany(companyEntity)) { document.write(getHttp("/body?name=contact&sct=90&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=91&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=92&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=93&v=1623597208000")) ; } function breadcrumbsPlace (companyEntity, placeEntity) { document.write(getHttp("/body?name=contact&sct=94&v=1623597208000")) ; if (validCompany(companyEntity)) { document.write(getHttp("/body?name=contact&sct=95&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=96&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=97&v=1623597208000")) ; } if (validPlace(placeEntity)) { document.write(getHttp("/body?name=contact&sct=98&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=99&v=1623597208000")) ;document.write(placeEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=100&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=101&v=1623597208000")) ; } if (pathname==null||pathname=="/company"||pathname=="/company/list") { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; var companyEntityList = getHttpJson("/app/company/list?page="+page+(criteria?("&criteria="+criteria):"")+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=contact&sct=102&v=1623597208000")) ; breadcrumbsCompany() ; companyMenu() ; document.write(getHttp("/body?name=contact&sct=103&v=1623597208000")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=contact&sct=118&v=1623597208000")) ;document.write(page-1) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=contact&sct=119&v=1623597208000")) ; } if (i==10) { document.write(getHttp("/body?name=contact&sct=120&v=1623597208000")) ;document.write(page+1) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=contact&sct=121&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=122&v=1623597208000")) ; } else if (pathname=="/company/view"&&validCompany(companyEntity)) { document.write(getHttp("/body?name=contact&sct=123&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=124&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=125&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=126&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=127&v=1623597208000")) ;document.write(companyEntity["version"]) ;document.write(getHttp("/body?name=contact&sct=128&v=1623597208000")) ;document.write(getDigitalRating(companyEntity["rating"])) ;document.write(getHttp("/body?name=contact&sct=129&v=1623597208000")) ; if (validSession(session)) { document.write(getHttp("/body?name=contact&sct=130&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=131&v=1623597208000")) ; var rating = sessionCompanyUserEntity["rating"]*5 ; for (i=1 ; i<=5 ; ++i) { document.write(getHttp("/body?name=contact&sct=132&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=133&v=1623597208000")) ;document.write(i) ;document.write(getHttp("/body?name=contact&sct=134&v=1623597208000")) ;document.write(i) ;document.write(getHttp("/body?name=contact&sct=135&v=1623597208000")) ;document.write(validCompanyUser(sessionCompanyUserEntity)&&rating>=i?"color:black;":"color:gray;") ;document.write(getHttp("/body?name=contact&sct=136&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=137&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=138&v=1623597208000")) ;document.write(validCompanyUserSubscriber(sessionCompanyUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=contact&sct=139&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=140&v=1623597208000")) ;document.write(!validCompanyUserSubscriber(sessionCompanyUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=contact&sct=141&v=1623597208000")) ; } else { document.write(getHttp("/body?name=contact&sct=142&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=143&v=1623597208000")) ; } if (!validCompanyUser(sessionCompanyUserEntity)||(!sessionCompanyUserEntity["accepted"]&&!sessionCompanyUserEntity["approved"])) { document.write(getHttp("/body?name=contact&sct=144&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=145&v=1623597208000")) ; } else if (validCompanyUser(sessionCompanyUserEntity)&&sessionCompanyUserEntity["member"]) { document.write(getHttp("/body?name=contact&sct=146&v=1623597208000")) ;document.write(sessionCompanyUserEntity["roles"]) ;document.write(getHttp("/body?name=contact&sct=147&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=148&v=1623597208000")) ;document.write(sessionCompanyUserEntity["companyUserEntity"]) ;document.write(getHttp("/body?name=contact&sct=149&v=1623597208000")) ; } else if (validCompanyUser(sessionCompanyUserEntity)&&!sessionCompanyUserEntity["accepted"]&&sessionCompanyUserEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=150&v=1623597208000")) ;document.write(sessionCompanyUserEntity["roles"]) ;document.write(getHttp("/body?name=contact&sct=151&v=1623597208000")) ;document.write(sessionCompanyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=152&v=1623597208000")) ;document.write(sessionCompanyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=153&v=1623597208000")) ; } else if (validCompanyUser(sessionCompanyUserEntity)&&sessionCompanyUserEntity["accepted"]&&!sessionCompanyUserEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=154&v=1623597208000")) ; } if (validCompanyUser(sessionCompanyUserEntity)&&sessionCompanyUserEntity["claim"]) { document.write(getHttp("/body?name=contact&sct=155&v=1623597208000")) ; } else if (!companyEntity["userEntityId"]) { document.write(getHttp("/body?name=contact&sct=156&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=157&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=158&v=1623597208000")) ; if (companyEntity["showAddress"]) { document.write(getHttp("/body?name=contact&sct=159&v=1623597208000")) ;document.write(companyEntity["address1"]) ;document.write(getHttp("/body?name=contact&sct=160&v=1623597208000")) ; if (companyEntity["address2"]) { document.write(getHttp("/body?name=contact&sct=161&v=1623597208000")) ;document.write(companyEntity["address2"]) ;document.write(getHttp("/body?name=contact&sct=162&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=163&v=1623597208000")) ;document.write(companyEntity["city"]) ;document.write(getHttp("/body?name=contact&sct=164&v=1623597208000")) ;document.write(companyEntity["state"]) ;document.write(getHttp("/body?name=contact&sct=165&v=1623597208000")) ;document.write(companyEntity["postal"]) ;document.write(getHttp("/body?name=contact&sct=166&v=1623597208000")) ; if (companyEntity["phone"]) { document.write(getHttp("/body?name=contact&sct=167&v=1623597208000")) ;document.write(companyEntity["phone"]) ;document.write(getHttp("/body?name=contact&sct=168&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=169&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=170&v=1623597208000")) ; if (companyEntity["url"]) { document.write(getHttp("/body?name=contact&sct=171&v=1623597208000")) ;document.write(companyEntity["url"]) ;document.write(getHttp("/body?name=contact&sct=172&v=1623597208000")) ;document.write(companyEntity["url"]) ;document.write(getHttp("/body?name=contact&sct=173&v=1623597208000")) ; } if (companyEntity["paypalId"]) { document.write(getHttp("/body?name=contact&sct=174&v=1623597208000")) ;document.write(companyEntity["paypalId"]) ;document.write(getHttp("/body?name=contact&sct=175&v=1623597208000")) ;document.write(companyEntity["paypalId"]) ;document.write(getHttp("/body?name=contact&sct=176&v=1623597208000")) ; } if (companyEntity["meetupId"]) { document.write(getHttp("/body?name=contact&sct=177&v=1623597208000")) ;document.write(companyEntity["meetupId"]) ;document.write(getHttp("/body?name=contact&sct=178&v=1623597208000")) ;document.write(companyEntity["meetupId"]) ;document.write(getHttp("/body?name=contact&sct=179&v=1623597208000")) ; } if (companyEntity["youtubeId"]) { document.write(getHttp("/body?name=contact&sct=180&v=1623597208000")) ;document.write(companyEntity["youtubeId"]) ;document.write(getHttp("/body?name=contact&sct=181&v=1623597208000")) ;document.write(companyEntity["youtubeId"]) ;document.write(getHttp("/body?name=contact&sct=182&v=1623597208000")) ; } if (companyEntity["twitterId"]) { document.write(getHttp("/body?name=contact&sct=183&v=1623597208000")) ;document.write(companyEntity["twitterId"]) ;document.write(getHttp("/body?name=contact&sct=184&v=1623597208000")) ;document.write(companyEntity["twitterId"]) ;document.write(getHttp("/body?name=contact&sct=185&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=186&v=1623597208000")) ; companyMenu(companyEntity) ; document.write(getHttp("/body?name=contact&sct=187&v=1623597208000")) ;document.write(getHttp("/app/company/viewlongdescription?companyEntityId="+companyEntity["companyEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=188&v=1623597208000")) ; var categoryEntityList = getHttpJson("/app/category/list?companyEntityId="+companyEntity["companyEntityId"]+"&sessionToken="+session["sessionToken"]) ; var productEntityList = getHttpJson("/app/product/list?"+(validCompany(companyEntity)?("&companyEntityId="+companyEntity["companyEntityId"]):"")+(validCategory(categoryEntity)?("&categoryEntityId="+categoryEntity["categoryEntityId"]):"")+(criteria?("&criteria="+criteria):"")+"&page="+-1+"&sessionToken="+session["sessionToken"]) ; if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=189&v=1623597208000")) ; for (i=0 ; i"+data["error"]) ; } else { curOrderEntityId = data["orderEntityId"]; setCookie("orderEntityId", curOrderEntityId, 30); //window.location = "/order/view?orderEntityId="+data["orderEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateOrderLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } else { curOrderEntityId = parseInt(curOrderEntityId); } // you add a product to the order // creating an "orderProduct" // /app/order/product/create $.ajax ( { url: "/app/order/product/create", method: "POST", async: false, data: {"productEntityId":nextProductEntity["productEntityId"], "sessionToken":session["sessionToken"],"userEntityId":session["userEntityId"], "orderEntityId":curOrderEntityId, "quantityRequest":quantity}, success: function (data) { if (data["error"]) { $("#updateOrderLongFormMessage").html("

"+data["error"]) ; alert("ERROR"); } }, error: function (jqXHR, textStatus, errorThrown) { alert("

Failure: "+textStatus+" / "+errorThrown) ; } } ); showAddedToCartMessage(); } function openModal(clicked){ var modal = document.getElementById("myModal"); var span = document.getElementsByClassName("close")[0]; modal.style.display = "block"; var productEntityList = getHttpJson("/app/product/list?"+(validCompany(companyEntity)?("&companyEntityId="+companyEntity["companyEntityId"]):"")+(validCategory(categoryEntity)?("&categoryEntityId="+categoryEntity["categoryEntityId"]):"")+(criteria?("&criteria="+criteria):"")+"&page="+-1+"&sessionToken="+session["sessionToken"]) ; var curId = $(clicked).attr('id'); var indexOfButton = parseInt(curId.split(" ")[1]); var nextProductEntity = productEntityList[indexOfButton] ; $("#modal-content-table").empty(); var dataToAdd = `` + nextProductEntity["label"] + ``; $("#modal-content-table").append(dataToAdd); dataToAdd = ``; dataToAdd += `

Quantity:

`; $("#modal-content-table").append(dataToAdd); dataToAdd = ``; $("#modal-content-table").append(dataToAdd); var addToCartButton = document.getElementById(curId + ` button`); addToCartButton.addEventListener('click', function(){ var quantity = document.getElementById(`quantity` + indexOfButton); addToCart(indexOfButton, quantity.value); }); } var modal = document.getElementById("myModal"); var span = document.getElementsByClassName("close")[0]; span.onclick = function() { modal.style.display = "none"; } window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } } if (categoryEntityList.length>1) { document.write(getHttp("/body?name=contact&sct=199&v=1623597208000")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=contact&sct=212&v=1623597208000")) ; for (i=0 ; i<10&&i"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } var companyUserEntityList = getHttpJson("/app/company/user/list?criteria=longdescription&companyEntityId="+companyEntity["companyEntityId"]+"&page=0&sessionToken="+session["sessionToken"]) ; if (companyUserEntityList.length>0) { document.write(getHttp("/body?name=contact&sct=230&v=1623597208000")) ; for (i=0 ; i<10&&i"+data["error"]) ; else { window.location = "/product/view?productEntityId="+data["productEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createProductFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=contact&sct=259&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=260&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=261&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=262&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=263&v=1623597208000")) ;document.write(getNonnull(companyEntity["label"])) ;document.write(getHttp("/body?name=contact&sct=264&v=1623597208000")) ;document.write(getNonnull(companyEntity["address1"])) ;document.write(getHttp("/body?name=contact&sct=265&v=1623597208000")) ;document.write(getNonnull(companyEntity["address2"])) ;document.write(getHttp("/body?name=contact&sct=266&v=1623597208000")) ;document.write(getNonnull(companyEntity["city"])) ;document.write(getHttp("/body?name=contact&sct=267&v=1623597208000")) ;document.write(getNonnull(companyEntity["state"])) ;document.write(getHttp("/body?name=contact&sct=268&v=1623597208000")) ;document.write(getNonnull(companyEntity["postal"])) ;document.write(getHttp("/body?name=contact&sct=269&v=1623597208000")) ;document.write(getNonnull(companyEntity["phone"])) ;document.write(getHttp("/body?name=contact&sct=270&v=1623597208000")) ;document.write(companyEntity["showAddress"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=271&v=1623597208000")) ;document.write(getNonnull(companyEntity["url"])) ;document.write(getHttp("/body?name=contact&sct=272&v=1623597208000")) ;document.write(getNonnull(companyEntity["paypalId"])) ;document.write(getHttp("/body?name=contact&sct=273&v=1623597208000")) ; $("#updateCompanyForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/update", method: "POST", async: false, data: $("#updateCompanyForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateCompanyFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=contact&sct=274&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=275&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=276&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=277&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=278&v=1623597208000")) ;document.write(getHttp("/app/company/viewlongdescription?companyEntityId="+companyEntity["companyEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=279&v=1623597208000")) ; tinymce.init ({ selector: 'textarea#updateCompanyLongFormLongDescription', height: 500, plugins: "code", toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | code | help', menubar: false, }) ; $("#updateCompanyLongForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/updatelongdescription", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"longDescription":tinymce.get("updateCompanyLongFormLongDescription").getContent()}, success: function (data) { if (data["error"]) $("#updateCompanyLongFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateCompanyLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=contact&sct=280&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=281&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=282&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=283&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=284&v=1623597208000")) ;document.write(companyEntity["imageUrl"]) ;document.write(getHttp("/body?name=contact&sct=285&v=1623597208000")) ;document.write(companyEntity["imageCredit"]) ;document.write(getHttp("/body?name=contact&sct=286&v=1623597208000")) ; $("#companyUploadImageForm").on ( "submit", function (product) { product.preventDefault() ; $("#companyUploadImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("companyEntityId",companyEntity["companyEntityId"]) ; formData.append("image",$('#companyUploadImageFormImage')[0].files[0]) ; formData.append("imageUrl",$("#uploadimageCompanyFormUrl").val()) ; formData.append("imageCredit",$("#uploadimageCompanyFormCredit").val()) ; $.ajax ( { url: "/app/company/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#companyUploadImageFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUploadImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if (pathname=="/company/viewEmployer"&&validCompany(companyEntity)) { document.write(getHttp("/body?name=contact&sct=287&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=288&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=289&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=290&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=291&v=1623597208000")) ;document.write(companyEntity["version"]) ;document.write(getHttp("/body?name=contact&sct=292&v=1623597208000")) ;document.write(getDigitalRating(companyEntity["rating"])) ;document.write(getHttp("/body?name=contact&sct=293&v=1623597208000")) ; if (validSession(session)) { document.write(getHttp("/body?name=contact&sct=294&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=295&v=1623597208000")) ; var rating = sessionCompanyUserEntity["rating"]*5 ; for (i=1 ; i<=5 ; ++i) { document.write(getHttp("/body?name=contact&sct=296&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=297&v=1623597208000")) ;document.write(i) ;document.write(getHttp("/body?name=contact&sct=298&v=1623597208000")) ;document.write(i) ;document.write(getHttp("/body?name=contact&sct=299&v=1623597208000")) ;document.write(validCompanyUser(sessionCompanyUserEntity)&&rating>=i?"color:black;":"color:gray;") ;document.write(getHttp("/body?name=contact&sct=300&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=301&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=302&v=1623597208000")) ;document.write(validCompanyUserSubscriber(sessionCompanyUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=contact&sct=303&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=304&v=1623597208000")) ;document.write(!validCompanyUserSubscriber(sessionCompanyUserEntity)?"display:none;":"display:block;") ;document.write(getHttp("/body?name=contact&sct=305&v=1623597208000")) ; } else { document.write(getHttp("/body?name=contact&sct=306&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=307&v=1623597208000")) ; } if (!validCompanyUser(sessionCompanyUserEntity)||(!sessionCompanyUserEntity["accepted"]&&!sessionCompanyUserEntity["approved"])) { document.write(getHttp("/body?name=contact&sct=308&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=309&v=1623597208000")) ; } else if (validCompanyUser(sessionCompanyUserEntity)&&sessionCompanyUserEntity["member"]) { document.write(getHttp("/body?name=contact&sct=310&v=1623597208000")) ;document.write(sessionCompanyUserEntity["roles"]) ;document.write(getHttp("/body?name=contact&sct=311&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=312&v=1623597208000")) ;document.write(sessionCompanyUserEntity["companyUserEntity"]) ;document.write(getHttp("/body?name=contact&sct=313&v=1623597208000")) ; } else if (validCompanyUser(sessionCompanyUserEntity)&&!sessionCompanyUserEntity["accepted"]&&sessionCompanyUserEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=314&v=1623597208000")) ;document.write(sessionCompanyUserEntity["roles"]) ;document.write(getHttp("/body?name=contact&sct=315&v=1623597208000")) ;document.write(sessionCompanyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=316&v=1623597208000")) ;document.write(sessionCompanyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=317&v=1623597208000")) ; } else if (validCompanyUser(sessionCompanyUserEntity)&&sessionCompanyUserEntity["accepted"]&&!sessionCompanyUserEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=318&v=1623597208000")) ; } if (validCompanyUser(sessionCompanyUserEntity)&&sessionCompanyUserEntity["claim"]) { document.write(getHttp("/body?name=contact&sct=319&v=1623597208000")) ; } else if (!companyEntity["userEntityId"]) { document.write(getHttp("/body?name=contact&sct=320&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=321&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=322&v=1623597208000")) ; if (companyEntity["showAddress"]) { document.write(getHttp("/body?name=contact&sct=323&v=1623597208000")) ;document.write(companyEntity["address1"]) ;document.write(getHttp("/body?name=contact&sct=324&v=1623597208000")) ; if (companyEntity["address2"]) { document.write(getHttp("/body?name=contact&sct=325&v=1623597208000")) ;document.write(companyEntity["address2"]) ;document.write(getHttp("/body?name=contact&sct=326&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=327&v=1623597208000")) ;document.write(companyEntity["city"]) ;document.write(getHttp("/body?name=contact&sct=328&v=1623597208000")) ;document.write(companyEntity["state"]) ;document.write(getHttp("/body?name=contact&sct=329&v=1623597208000")) ;document.write(companyEntity["postal"]) ;document.write(getHttp("/body?name=contact&sct=330&v=1623597208000")) ; if (companyEntity["phone"]) { document.write(getHttp("/body?name=contact&sct=331&v=1623597208000")) ;document.write(companyEntity["phone"]) ;document.write(getHttp("/body?name=contact&sct=332&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=333&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=334&v=1623597208000")) ; if (companyEntity["url"]) { document.write(getHttp("/body?name=contact&sct=335&v=1623597208000")) ;document.write(companyEntity["url"]) ;document.write(getHttp("/body?name=contact&sct=336&v=1623597208000")) ;document.write(companyEntity["url"]) ;document.write(getHttp("/body?name=contact&sct=337&v=1623597208000")) ; } if (companyEntity["paypalId"]) { document.write(getHttp("/body?name=contact&sct=338&v=1623597208000")) ;document.write(companyEntity["paypalId"]) ;document.write(getHttp("/body?name=contact&sct=339&v=1623597208000")) ;document.write(companyEntity["paypalId"]) ;document.write(getHttp("/body?name=contact&sct=340&v=1623597208000")) ; } if (companyEntity["meetupId"]) { document.write(getHttp("/body?name=contact&sct=341&v=1623597208000")) ;document.write(companyEntity["meetupId"]) ;document.write(getHttp("/body?name=contact&sct=342&v=1623597208000")) ;document.write(companyEntity["meetupId"]) ;document.write(getHttp("/body?name=contact&sct=343&v=1623597208000")) ; } if (companyEntity["youtubeId"]) { document.write(getHttp("/body?name=contact&sct=344&v=1623597208000")) ;document.write(companyEntity["youtubeId"]) ;document.write(getHttp("/body?name=contact&sct=345&v=1623597208000")) ;document.write(companyEntity["youtubeId"]) ;document.write(getHttp("/body?name=contact&sct=346&v=1623597208000")) ; } if (companyEntity["twitterId"]) { document.write(getHttp("/body?name=contact&sct=347&v=1623597208000")) ;document.write(companyEntity["twitterId"]) ;document.write(getHttp("/body?name=contact&sct=348&v=1623597208000")) ;document.write(companyEntity["twitterId"]) ;document.write(getHttp("/body?name=contact&sct=349&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=350&v=1623597208000")) ; companyMenu(companyEntity) ; document.write(getHttp("/body?name=contact&sct=351&v=1623597208000")) ;document.write(getHttp("/app/company/viewlongdescription?companyEntityId="+companyEntity["companyEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=352&v=1623597208000")) ; var companyUserList = getHttpJson("/app/company/user/list?companyEntityId="+companyEntity["companyEntityId"]+"&sessionToken="+session["sessionToken"]) ; alert(companyUserList) for (i = 0; i < companyUserList.length; i++) { var companyUserEntity = companyUserList[i]; alert(comapnyUserEntity["label"]) document.write(getHttp("/body?name=contact&sct=353&v=1623597208000")) ;document.write(comapnyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=354&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=355&v=1623597208000")) ; if (validSession(session)) { document.write(getHttp("/body?name=contact&sct=356&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=357&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=358&v=1623597208000")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=contact&sct=359&v=1623597208000")) ;document.write(getHttp("/app/company/user/viewlongdescription?companyEntityId="+companyEntity["companyEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=360&v=1623597208000")) ; tinymce.init ({ selector: 'textarea#commentCompanyFormLongDescription', height: 200, width: 750, plugins: "code", toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | code | help', menubar: false, }) ; $("#commentCompanyForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/comment", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"userEntityId":session["userEntityId"],"longDescription":tinymce.get("commentCompanyFormLongDescription").getContent()}, success: function (data) { if (data["error"]) $("#commentCompanyFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } var companyUserEntityList = getHttpJson("/app/company/user/list?criteria=longdescription&companyEntityId="+companyEntity["companyEntityId"]+"&page=0&sessionToken="+session["sessionToken"]) ; if (companyUserEntityList.length>0) { document.write(getHttp("/body?name=contact&sct=361&v=1623597208000")) ; for (i=0 ; i<10&&i"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=contact&sct=391&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=392&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=393&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=394&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=395&v=1623597208000")) ;document.write(getHttp("/app/company/viewlongdescription?companyEntityId="+companyEntity["companyEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=396&v=1623597208000")) ; tinymce.init ({ selector: 'textarea#updateCompanyLongFormLongDescription', height: 500, plugins: "code", toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | code | help', menubar: false, }) ; $("#updateCompanyLongForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/updatelongdescription", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"longDescription":tinymce.get("updateCompanyLongFormLongDescription").getContent()}, success: function (data) { if (data["error"]) $("#updateCompanyLongFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateCompanyLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=contact&sct=397&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=398&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=399&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=400&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=401&v=1623597208000")) ;document.write(companyEntity["imageUrl"]) ;document.write(getHttp("/body?name=contact&sct=402&v=1623597208000")) ;document.write(companyEntity["imageCredit"]) ;document.write(getHttp("/body?name=contact&sct=403&v=1623597208000")) ; $("#companyUploadImageForm").on ( "submit", function (product) { product.preventDefault() ; $("#companyUploadImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("companyEntityId",companyEntity["companyEntityId"]) ; formData.append("image",$('#companyUploadImageFormImage')[0].files[0]) ; formData.append("imageUrl",$("#uploadimageCompanyFormUrl").val()) ; formData.append("imageCredit",$("#uploadimageCompanyFormCredit").val()) ; $.ajax ( { url: "/app/company/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#companyUploadImageFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUploadImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if (pathname=="/company/create") { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=contact&sct=404&v=1623597208000")) ; breadcrumbsCompany() ; document.write(getHttp("/body?name=contact&sct=405&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=406&v=1623597208000")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=contact&sct=407&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=408&v=1623597208000")) ; var productTypeUnitList = getHttpJson("/app/producttype/unit/list?sessionToken="+session["sessionToken"]) ; var categoryEntityList = getHttpJson("/app/category/list?page=-1&sessionToken="+session["sessionToken"]) ; var sessionT = session["sessionToken"]; var sessionId = session["userEntityId"]; addRow(productTypeUnitList, categoryEntityList, sessionT, sessionId); document.write(getHttp("/body?name=contact&sct=409&v=1623597208000")) ; function addRow(productTypeUnitList, categoryEntityList, sessionT, sessionId){ var tableLen = document.getElementById("num").value; var rowNum = parseInt(tableLen, 10); rowNum = rowNum + 1; var newRow = "

" +"
" +"" +"" +"

"; if (tableLen == 0) { newRow = newRow +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +""; } newRow = newRow +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +""; $("ol").append(newRow); } function editRow(productTypeUnitList, categoryEntityList, sessionT, sessionId){ var num = document.getElementById("num").value; var val = parseInt(num, 10); var lastRowVal = document.getElementById(val).value; if (lastRowVal != ""){ val = val + 1; document.getElementById("num").value = val; addRow(productTypeUnitList, categoryEntityList, sessionT, sessionId); } } function create1 () { $("#createCompanyFormMessage").css("display","block") ; $("#companyUploadImageDiv").css("display","none") ; } function create2 () { $("#createCompanyFormMessage").css("display","none") ; $("#companyUploadImageDiv").css("display","block") ; $("#companyProductSetup").css("display","none") ; } function create3 () { $("#companyUploadImageDiv").css("display","none") ; $("#companyProductSetup").css("display","block") ; } $("#submitButton").on ( "click", function (product) { product.preventDefault() ; var companyEntity = ""; $.ajax ( { url: "/app/company/create", method: "POST", async: false, data: $("#createCompanyForm").serializeArray(), success: function (data) { if (data["error"]) $("#createCompanyFormMessage").html("

"+data["error"]) ; else { companyEntity = data["companyEntityId"] } }, error: function (jqXHR, textStatus, errorThrown) { $("#createCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; $("#companyUploadImageForm").innerHTML = 'Uploading...' ; var formData = new FormData() ; formData.append("sessionToken",session["sessionToken"]) ; formData.append("companyEntityId",companyEntity) ; formData.append("image",$('#companyUploadImageFormImage')[0].files[0]) ; formData.append("imageUrl",$("#uploadimageCompanyFormUrl").val()) ; formData.append("imageCredit",$("#uploadimageCompanyFormCredit").val()) ; $.ajax ( { url: "/app/company/uploadimage", method: "POST", async: false, data: formData, processData: false, contentType: false, success: function (data) { if (data["error"]) $("#companyUploadImageFormMessage").html("

"+data["error"]) ; }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUploadImageFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ); for (var i = 0; i < document.getElementById("num").value; i++) { var companyE2 = "" $("#createProductForm"+i).append(companyE2); $.ajax ( { url: "/app/product/create", method: "POST", async: false, data: $("#createProductForm"+i).serializeArray(), success: function (data) { if (data["error"]){ $("#createProductFormMessage").html("

"+data["error"]) ; } else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createProductFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ); } } ) ; } } else if (pathname=="/company/update"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=410&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=411&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=412&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=413&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=414&v=1623597208000")) ;document.write(getNonnull(companyEntity["label"])) ;document.write(getHttp("/body?name=contact&sct=415&v=1623597208000")) ;document.write(getNonnull(companyEntity["address1"])) ;document.write(getHttp("/body?name=contact&sct=416&v=1623597208000")) ;document.write(getNonnull(companyEntity["address2"])) ;document.write(getHttp("/body?name=contact&sct=417&v=1623597208000")) ;document.write(getNonnull(companyEntity["city"])) ;document.write(getHttp("/body?name=contact&sct=418&v=1623597208000")) ;document.write(getNonnull(companyEntity["state"])) ;document.write(getHttp("/body?name=contact&sct=419&v=1623597208000")) ;document.write(getNonnull(companyEntity["postal"])) ;document.write(getHttp("/body?name=contact&sct=420&v=1623597208000")) ;document.write(getNonnull(companyEntity["phone"])) ;document.write(getHttp("/body?name=contact&sct=421&v=1623597208000")) ;document.write(companyEntity["showAddress"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=422&v=1623597208000")) ;document.write(getNonnull(companyEntity["website"])) ;document.write(getHttp("/body?name=contact&sct=423&v=1623597208000")) ;document.write(getNonnull(companyEntity["paypalId"])) ;document.write(getHttp("/body?name=contact&sct=424&v=1623597208000")) ; $("#updateCompanyForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/update", method: "POST", async: false, data: $("#updateCompanyForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateCompanyFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/company/subscribe"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=contact&sct=425&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=426&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; $.ajax ( { url: "/app/company/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"userEntityId":companyEntity["companyEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#companySubscribeMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companySubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=contact&sct=427&v=1623597208000")) ; } } else if (pathname=="/company/join"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUser(sessionCompanyUserEntity)&&!sessionCompanyUserEntity["approved"]) { document.write(getHttp("/body?name=contact&sct=428&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=429&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=430&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=431&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=432&v=1623597208000")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=contact&sct=433&v=1623597208000")) ; $("#joinCompanyForm").on ( "submit", function (company) { company.prcompanyDefault() ; $.ajax ( { url: "/app/company/join", method: "POST", async: false, data: $("#joinCompanyForm").serializeArray(), success: function (data) { if (data["error"]) $("#joinCompanyFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#joinCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; document.write(getHttp("/body?name=contact&sct=434&v=1623597208000")) ; } else errorPage() ; } else if (pathname=="/company/comment"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=contact&sct=435&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=436&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; document.write(getHttp("/body?name=contact&sct=437&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=438&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=439&v=1623597208000")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=contact&sct=440&v=1623597208000")) ;document.write(getHttp("/app/company/user/viewlongdescription?companyEntityId="+companyEntity["companyEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=441&v=1623597208000")) ; tinymce.init ({ selector: 'textarea#commentCompanyFormLongDescription', height: 500, plugins: "code", toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat code | help', menubar: false, }) ; $("#commentCompanyForm").on ( "submit", function (company) { company.prcompanyDefault() ; $.ajax ( { url: "/app/company/comment", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"userEntityId":userEntity["userEntityId"],"longDescription":tinymce.get("commentCompanyFormLongDescription").getContent()}, success: function (data) { if (data["error"]) $("#commentCompanyFormMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentCompanyFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } } else if (pathname=="/company/accept"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=contact&sct=442&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=443&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=444&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity) ; { $.ajax ( { url: "/app/company/user/accept", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#companyUserAcceptMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUserAcceptMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=contact&sct=445&v=1623597208000")) ; } } else if (pathname=="/company/decline"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=contact&sct=446&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=447&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity) ; { $.ajax ( { url: "/app/company/decline", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntity["companyUserEntityId"]}, success: function (data) { if (data["error"]) $("#companyUserDeclineMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUserDeclineMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=contact&sct=448&v=1623597208000")) ; } } else if (pathname=="/company/claim"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else { document.write(getHttp("/body?name=contact&sct=449&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=450&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; $.ajax ( { url: "/app/company/claim", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyEntityId":companyEntity["companyEntityId"],"userEntityId":session["userEntityId"]}, success: function (data) { if (data["error"]) $("#companySubscribeMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companySubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=contact&sct=451&v=1623597208000")) ; } } else if ((pathname=="/company/user"||pathname=="/company/user/list")&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=contact&sct=452&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=453&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity) ; var companyUserEntityList = getHttpJson("/app/company/user/list?companyEntityId="+companyEntity["companyEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=contact&sct=454&v=1623597208000")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=contact&sct=466&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=contact&sct=467&v=1623597208000")) ;document.write(page-1) ;document.write(getHttp("/body?name=contact&sct=468&v=1623597208000")) ; } if (i==10) { document.write(getHttp("/body?name=contact&sct=469&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=contact&sct=470&v=1623597208000")) ;document.write(page+1) ;document.write(getHttp("/body?name=contact&sct=471&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=472&v=1623597208000")) ; } else errorPage() ; } else if (pathname=="/company/user/view") { if (!validSession(session)) signinPage() ; else if (validCompany(companyEntity)&&validCompanyUser(companyUserEntity)&&(companyUserEntity["userEntityId"]==session["userEntityId"]||validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session))) { document.write(getHttp("/body?name=contact&sct=473&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=474&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=475&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity,companyUserEntity) ; if (companyUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=contact&sct=476&v=1623597208000")) ;document.write(companyUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=contact&sct=477&v=1623597208000")) ;document.write(companyUserEntity["version"]) ;document.write(getHttp("/body?name=contact&sct=478&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=479&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=480&v=1623597208000")) ; if (companyUserEntity["firstName"]) { document.write(getHttp("/body?name=contact&sct=481&v=1623597208000")) ;document.write(companyUserEntity["firstName"]) ;document.write(getHttp("/body?name=contact&sct=482&v=1623597208000")) ; } if (companyUserEntity["lastName"]) { document.write(getHttp("/body?name=contact&sct=483&v=1623597208000")) ;document.write(companyUserEntity["lastName"]) ;document.write(getHttp("/body?name=contact&sct=484&v=1623597208000")) ; } if (companyUserEntity["email"]) { document.write(getHttp("/body?name=contact&sct=485&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=486&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=487&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=488&v=1623597208000")) ;document.write(companyUserEntity["owner"]) ;document.write(getHttp("/body?name=contact&sct=489&v=1623597208000")) ;document.write(companyUserEntity["administrator"]) ;document.write(getHttp("/body?name=contact&sct=490&v=1623597208000")) ;document.write(companyUserEntity["editor"]) ;document.write(getHttp("/body?name=contact&sct=491&v=1623597208000")) ;document.write(companyUserEntity["manager"]) ;document.write(getHttp("/body?name=contact&sct=492&v=1623597208000")) ;document.write(companyUserEntity["instructor"]) ;document.write(getHttp("/body?name=contact&sct=493&v=1623597208000")) ;document.write(companyUserEntity["assistant"]) ;document.write(getHttp("/body?name=contact&sct=494&v=1623597208000")) ;document.write(companyUserEntity["subscriber"]) ;document.write(getHttp("/body?name=contact&sct=495&v=1623597208000")) ;document.write(companyUserEntity["claim"]) ;document.write(getHttp("/body?name=contact&sct=496&v=1623597208000")) ;document.write(companyUserEntity["acceptDate"]) ;document.write(getHttp("/body?name=contact&sct=497&v=1623597208000")) ;document.write(companyUserEntity["declineDate"]) ;document.write(getHttp("/body?name=contact&sct=498&v=1623597208000")) ;document.write(companyUserEntity["approveDate"]) ;document.write(getHttp("/body?name=contact&sct=499&v=1623597208000")) ;document.write(companyUserEntity["rejectDate"]) ;document.write(getHttp("/body?name=contact&sct=500&v=1623597208000")) ;document.write(companyUserEntity["publishDate"]) ;document.write(getHttp("/body?name=contact&sct=501&v=1623597208000")) ;document.write(companyUserEntity["createDate"]) ;document.write(getHttp("/body?name=contact&sct=502&v=1623597208000")) ;document.write(companyUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=contact&sct=503&v=1623597208000")) ;document.write(getHttp("/app/user/view/viewlongdescription?userEntityId="+companyUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=504&v=1623597208000")) ;document.write(getHttp("/app/company/user/viewlongdescription?companyUserEntityId="+companyUserEntity["companyUserEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=505&v=1623597208000")) ; } else errorPage() ; } else if (pathname=="/company/user/create") { if (!validSession(session)) signinPage() ; else if (validCompany(companyEntity)&&validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session)) { document.write(getHttp("/body?name=contact&sct=506&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=507&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity,companyUserEntity) ; document.write(getHttp("/body?name=contact&sct=508&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=509&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=510&v=1623597208000")) ; $("#createCompanyUserForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/user/create", method: "POST", async: false, data: $("#createCompanyUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createCompanyUserFormMessage").html("

"+data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createCompanyUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/company/user/update") { if (!validSession(session)) signinPage() ; else if (validCompany(companyEntity)&&validCompanyUser(companyUserEntity)&&(validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session))) { document.write(getHttp("/body?name=contact&sct=511&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=512&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=513&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity,companyUserEntity) ; document.write(getHttp("/body?name=contact&sct=514&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=515&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=516&v=1623597208000")) ; if (companyUserEntity["firstName"]) { document.write(getHttp("/body?name=contact&sct=517&v=1623597208000")) ;document.write(companyUserEntity["firstName"]) ;document.write(getHttp("/body?name=contact&sct=518&v=1623597208000")) ; } if (companyUserEntity["lastName"]) { document.write(getHttp("/body?name=contact&sct=519&v=1623597208000")) ;document.write(companyUserEntity["lastName"]) ;document.write(getHttp("/body?name=contact&sct=520&v=1623597208000")) ; } if (companyUserEntity["email"]) { document.write(getHttp("/body?name=contact&sct=521&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=522&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=523&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=524&v=1623597208000")) ;document.write(companyUserEntity["owner"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=525&v=1623597208000")) ;document.write(companyUserEntity["administrator"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=526&v=1623597208000")) ;document.write(companyUserEntity["editor"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=527&v=1623597208000")) ;document.write(companyUserEntity["manager"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=528&v=1623597208000")) ;document.write(companyUserEntity["instructor"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=529&v=1623597208000")) ;document.write(companyUserEntity["assistant"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=530&v=1623597208000")) ;document.write(companyUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=531&v=1623597208000")) ;document.write(companyUserEntity["claim"]?"checked":"") ;document.write(getHttp("/body?name=contact&sct=532&v=1623597208000")) ; $("#updateCompanyUserForm").on ( "submit", function (product) { product.preventDefault() ; $.ajax ( { url: "/app/company/user/update", method: "POST", async: false, data: $("#updateCompanyUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateCompanyUserFormMessage").html("

"+data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateCompanyUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/company/user/resend") { if (!validSession(session)) signinPage() ; else if (validCompany(companyEntity)&&validCompanyUser(companyUserEntity)&&(validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session))) { document.write(getHttp("/body?name=contact&sct=533&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=534&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=535&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity,companyUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=contact&sct=536&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=537&v=1623597208000")) ; } else { $.ajax ( { url: "/app/company/user/resend", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntity["companyUserEntityId"]}, success: function (data) { if (data["error"]) $("#companyUserResendMessage").html("

"+data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUserResendMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=contact&sct=538&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=539&v=1623597208000")) ; } else errorPage() ; } else if (pathname=="/company/user/approve") { if (!validSession(session)) signinPage() ; else if (validCompany(companyEntity)&&validCompanyUser(companyUserEntity)&&(validCompanyUserManager(sessionCompanyUserEntity)||validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session))) { document.write(getHttp("/body?name=contact&sct=540&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=541&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=542&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity,companyUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=contact&sct=543&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=544&v=1623597208000")) ; if (companyUserEntity["firstName"]) { document.write(getHttp("/body?name=contact&sct=545&v=1623597208000")) ;document.write(companyUserEntity["firstName"]) ;document.write(getHttp("/body?name=contact&sct=546&v=1623597208000")) ; } if (companyUserEntity["lastName"]) { document.write(getHttp("/body?name=contact&sct=547&v=1623597208000")) ;document.write(companyUserEntity["lastName"]) ;document.write(getHttp("/body?name=contact&sct=548&v=1623597208000")) ; } if (companyUserEntity["email"]) { document.write(getHttp("/body?name=contact&sct=549&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=550&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=551&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=552&v=1623597208000")) ;document.write(companyUserEntity["owner"]) ;document.write(getHttp("/body?name=contact&sct=553&v=1623597208000")) ;document.write(companyUserEntity["administrator"]) ;document.write(getHttp("/body?name=contact&sct=554&v=1623597208000")) ;document.write(companyUserEntity["editor"]) ;document.write(getHttp("/body?name=contact&sct=555&v=1623597208000")) ;document.write(companyUserEntity["manager"]) ;document.write(getHttp("/body?name=contact&sct=556&v=1623597208000")) ;document.write(companyUserEntity["instructor"]) ;document.write(getHttp("/body?name=contact&sct=557&v=1623597208000")) ;document.write(companyUserEntity["assistant"]) ;document.write(getHttp("/body?name=contact&sct=558&v=1623597208000")) ;document.write(companyUserEntity["subscriber"]) ;document.write(getHttp("/body?name=contact&sct=559&v=1623597208000")) ;document.write(companyUserEntity["claim"]) ;document.write(getHttp("/body?name=contact&sct=560&v=1623597208000")) ;document.write(companyUserEntity["acceptDate"]) ;document.write(getHttp("/body?name=contact&sct=561&v=1623597208000")) ;document.write(companyUserEntity["declineDate"]) ;document.write(getHttp("/body?name=contact&sct=562&v=1623597208000")) ;document.write(companyUserEntity["approveDate"]) ;document.write(getHttp("/body?name=contact&sct=563&v=1623597208000")) ;document.write(companyUserEntity["rejectDate"]) ;document.write(getHttp("/body?name=contact&sct=564&v=1623597208000")) ;document.write(companyUserEntity["createDate"]) ;document.write(getHttp("/body?name=contact&sct=565&v=1623597208000")) ;document.write(companyUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=contact&sct=566&v=1623597208000")) ;document.write(getHttp("/app/user/view/viewlongdescription?userEntityId="+companyUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=567&v=1623597208000")) ; } else { $.ajax ( { url: "/app/company/user/approve", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntity["companyUserEntityId"]}, success: function (data) { if (data["error"]) $("#companyUserApproveMessage").html("

"+data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUserApproveMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=contact&sct=568&v=1623597208000")) ; } else errorPage() ; } else if (pathname=="/company/user/reject") { if (!validSession(session)) signinPage() ; else if (validCompany(companyEntity)&&validCompanyUser(companyUserEntity)&&(validCompanyUserManager(sessionCompanyUserEntity)||validCompanyUserAdministrator(sessionCompanyUserEntity)||validSessionAdministrator(session))) { document.write(getHttp("/body?name=contact&sct=569&v=1623597208000")) ;document.write(companyEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=570&v=1623597208000")) ;document.write(companyUserEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=571&v=1623597208000")) ; breadcrumbsCompany(companyEntity) ; companyUserMenu(companyEntity,companyUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=contact&sct=572&v=1623597208000")) ;document.write(companyUserEntity["companyUserEntityId"]) ;document.write(getHttp("/body?name=contact&sct=573&v=1623597208000")) ; if (companyUserEntity["firstName"]) { document.write(getHttp("/body?name=contact&sct=574&v=1623597208000")) ;document.write(companyUserEntity["firstName"]) ;document.write(getHttp("/body?name=contact&sct=575&v=1623597208000")) ; } if (companyUserEntity["lastName"]) { document.write(getHttp("/body?name=contact&sct=576&v=1623597208000")) ;document.write(companyUserEntity["lastName"]) ;document.write(getHttp("/body?name=contact&sct=577&v=1623597208000")) ; } if (companyUserEntity["email"]) { document.write(getHttp("/body?name=contact&sct=578&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=579&v=1623597208000")) ;document.write(companyUserEntity["email"]) ;document.write(getHttp("/body?name=contact&sct=580&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=581&v=1623597208000")) ; } else { $.ajax ( { url: "/app/company/user/reject", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"companyUserEntityId":companyUserEntity["companyUserEntityId"]}, success: function (data) { if (data["error"]) $("#companyUserRejectMessage").html("

"+data["error"]) ; else { window.location = "/company/user/view?companyUserEntityId="+data["companyUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyUserRejectMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=contact&sct=582&v=1623597208000")) ; } else errorPage() ; } else if ((pathname=="/company/place"||pathname=="/company/place/list")&&validCompany(companyEntity)) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var placeEntityList = getHttpJson("/app/company/place/list?companyEntityId="+companyEntity["companyEntityId"]+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=contact&sct=583&v=1623597208000")) ; breadcrumbsPlace(companyEntity) ; placeMenu(companyEntity) ; document.write(getHttp("/body?name=contact&sct=584&v=1623597208000")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=contact&sct=589&v=1623597208000")) ;document.write(page-1) ;document.write(getHttp("/body?name=contact&sct=590&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=591&v=1623597208000")) ; } if (i==10) { document.write(getHttp("/body?name=contact&sct=592&v=1623597208000")) ;document.write(page+1) ;document.write(getHttp("/body?name=contact&sct=593&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=594&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=595&v=1623597208000")) ; } else if (pathname=="/company/place/view"&&validCompany(companyEntity)&&validPlace(placeEntity)) { document.write(getHttp("/body?name=contact&sct=596&v=1623597208000")) ;document.write(placeEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=597&v=1623597208000")) ; breadcrumbsPlace(companyEntity,placeEntity) ; placeMenu(companyEntity,placeEntity) ; if (placeEntity["url"]) { document.write(getHttp("/body?name=contact&sct=598&v=1623597208000")) ;document.write(placeEntity["url"]) ;document.write(getHttp("/body?name=contact&sct=599&v=1623597208000")) ;document.write(placeEntity["url"]) ;document.write(getHttp("/body?name=contact&sct=600&v=1623597208000")) ; } if (placeEntity["phone"]) { document.write(getHttp("/body?name=contact&sct=601&v=1623597208000")) ;document.write(placeEntity["phone"]) ;document.write(getHttp("/body?name=contact&sct=602&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=603&v=1623597208000")) ; if (placeEntity["address1"]) { document.write(getHttp("/body?name=contact&sct=604&v=1623597208000")) ;document.write(placeEntity["address1"]) ;document.write(getHttp("/body?name=contact&sct=605&v=1623597208000")) ; } if (placeEntity["address2"]) { document.write(getHttp("/body?name=contact&sct=606&v=1623597208000")) ;document.write(placeEntity["address2"]) ;document.write(getHttp("/body?name=contact&sct=607&v=1623597208000")) ; } if (placeEntity["city"]) { document.write(getHttp("/body?name=contact&sct=608&v=1623597208000")) ;document.write(placeEntity["city"]) ;document.write(getHttp("/body?name=contact&sct=609&v=1623597208000")) ; } if (placeEntity["state"]) { document.write(getHttp("/body?name=contact&sct=610&v=1623597208000")) ;document.write(placeEntity["state"]) ;document.write(getHttp("/body?name=contact&sct=611&v=1623597208000")) ; } if (placeEntity["postal"]) { document.write(getHttp("/body?name=contact&sct=612&v=1623597208000")) ;document.write(placeEntity["postal"]) ;document.write(getHttp("/body?name=contact&sct=613&v=1623597208000")) ; } if (placeEntity["city"]||placeEntity["state"]||placeEntity["postal"]) { document.write(getHttp("/body?name=contact&sct=614&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=615&v=1623597208000")) ;document.write(getHttp("/app/company/place/viewlongdescription?placeEntityId="+placeEntity["placeEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=616&v=1623597208000")) ; if (sessionCompanyUserEntity["editor"]||sessionCompanyUserEntity["administrator"]) { document.write(getHttp("/body?name=contact&sct=617&v=1623597208000")) ;document.write(placeEntity["createDate"]) ;document.write(getHttp("/body?name=contact&sct=618&v=1623597208000")) ;document.write(placeEntity["modifyDate"]) ;document.write(getHttp("/body?name=contact&sct=619&v=1623597208000")) ; } document.write(getHttp("/body?name=contact&sct=620&v=1623597208000")) ; } else if (pathname=="/company/place/create"&&validCompany(companyEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=621&v=1623597208000")) ; breadcrumbsPlace(companyEntity) ; placeMenu(companyEntity) ; document.write(getHttp("/body?name=contact&sct=622&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=623&v=1623597208000")) ;document.write(companyEntity["companyEntityId"]) ;document.write(getHttp("/body?name=contact&sct=624&v=1623597208000")) ; $("#createPlaceForm").on ( "submit", function (place) { place.preventDefault() ; $.ajax ( { url: "/app/company/place/create", method: "POST", async: false, data: $("#createPlaceForm").serializeArray(), success: function (data) { if (data["error"]) $("#createPlaceFormMessage").html("

"+data["error"]) ; else { window.location = "/company/place/view?placeEntityId="+data["placeEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createPlaceFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/company/place/update"&&validCompany(companyEntity)&&validPlace(placeEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=625&v=1623597208000")) ;document.write(placeEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=626&v=1623597208000")) ; breadcrumbsPlace(companyEntity,placeEntity) ; placeMenu(companyEntity,placeEntity) ; document.write(getHttp("/body?name=contact&sct=627&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=628&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=629&v=1623597208000")) ;document.write(getNonnull(placeEntity["label"])) ;document.write(getHttp("/body?name=contact&sct=630&v=1623597208000")) ;document.write(getNonnull(placeEntity["url"])) ;document.write(getHttp("/body?name=contact&sct=631&v=1623597208000")) ;document.write(getNonnull(placeEntity["phone"])) ;document.write(getHttp("/body?name=contact&sct=632&v=1623597208000")) ;document.write(getNonnull(placeEntity["address1"])) ;document.write(getHttp("/body?name=contact&sct=633&v=1623597208000")) ;document.write(getNonnull(placeEntity["address2"])) ;document.write(getHttp("/body?name=contact&sct=634&v=1623597208000")) ;document.write(getNonnull(placeEntity["city"])) ;document.write(getHttp("/body?name=contact&sct=635&v=1623597208000")) ;document.write(getNonnull(placeEntity["state"])) ;document.write(getHttp("/body?name=contact&sct=636&v=1623597208000")) ;document.write(getNonnull(placeEntity["postal"])) ;document.write(getHttp("/body?name=contact&sct=637&v=1623597208000")) ; $("#updatePlaceForm").on ( "submit", function (place) { place.preventDefault() ; $.ajax ( { url: "/app/company/place/update", method: "POST", async: false, data: $("#updatePlaceForm").serializeArray(), success: function (data) { if (data["error"]) $("#updatePlaceFormMessage").html("

"+data["error"]) ; else { window.location = "/company/place/view?placeEntityId="+data["placeEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updatePlaceFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/company/place/updatelong"&&validCompany(companyEntity)&&validPlace(placeEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=638&v=1623597208000")) ;document.write(placeEntity["label"]) ;document.write(getHttp("/body?name=contact&sct=639&v=1623597208000")) ; breadcrumbsPlace(companyEntity,placeEntity) ; placeMenu(companyEntity,placeEntity) ; document.write(getHttp("/body?name=contact&sct=640&v=1623597208000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=contact&sct=641&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=642&v=1623597208000")) ;document.write(getHttp("/app/company/place/viewlongdescription?placeEntityId="+placeEntity["placeEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=contact&sct=643&v=1623597208000")) ; tinymce.init ({ selector: 'textarea#updatePlaceLongFormLongDescription', height: 500, plugins: "code", toolbar: 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | code | help', menubar: false, }) ; $("#updatePlaceLongForm").on ( "submit", function (place) { place.preventDefault() ; $.ajax ( { url: "/app/company/place/updatelongdescription", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"placeEntityId":placeEntity["placeEntityId"],"longDescription":tinymce.get("updatePlaceLongFormLongDescription").getContent()}, success: function (data) { if (data["error"]) $("#updatePlaceLongFormMessage").html("

"+data["error"]) ; else { window.location = "/company/place/view?placeEntityId="+data["placeEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updatePlaceLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else errorPage() ; } else if (pathname=="/company/place/delete"&&validCompany(companyEntity)&&validPlace(placeEntity)) { if (!validSession(session)) signinPage() ; else if (validCompanyUserEditor(sessionCompanyUserEntity)||validSessionEditor(session)) { document.write(getHttp("/body?name=contact&sct=644&v=1623597208000")) ;document.write(placeEntity["name"]) ;document.write(getHttp("/body?name=contact&sct=645&v=1623597208000")) ; breadcrumbsPlace(companyEntity,placeEntity) ; placeMenu(companyEntity,placeEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=contact&sct=646&v=1623597208000")) ;document.write(placeEntity["name"]) ;document.write(getHttp("/body?name=contact&sct=647&v=1623597208000")) ;document.write(placeEntity["placeEntityId"]) ;document.write(getHttp("/body?name=contact&sct=648&v=1623597208000")) ;document.write(placeEntity["name"]) ;document.write(getHttp("/body?name=contact&sct=649&v=1623597208000")) ; } else { $.ajax ( { url: "/app/company/place/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"placeEntityId":placeEntity["placeEntityId"]}, success: function (data) { if (data["error"]) $("#companyPlaceDeleteMessage").html("

"+data["error"]) ; else { window.location = "/company/view?companyEntityId="+data["companyEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#companyPlaceDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=contact&sct=650&v=1623597208000")) ; } else errorPage() ; } else errorPage() ;

LabelUrlShow OrderPriceQuantityVarianceCategoryUnit, PriceUnit, OrderSeason, BeginSeason, End
Product " + rowNum + "" +"" +"" +"" +"