PageRenderTime 37ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/osj-osj2dapplicationssrch.php

http://osjobber.googlecode.com/
PHP | 440 lines | 336 code | 49 blank | 55 comment | 62 complexity | ce1f4bb35cd0404dcc43b2956851d553 MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-1.0
  1. <?php
  2. define("EW_PAGE_ID", "search", TRUE); // Page ID
  3. define("EW_TABLE_NAME", 'osj-applications', TRUE);
  4. ?>
  5. <?php
  6. session_start(); // Initialize session data
  7. ob_start(); // Turn on output buffering
  8. ?>
  9. <?php include "osj-ewcfg50.php" ?>
  10. <?php include "osj-ewmysql50.php" ?>
  11. <?php include "osj-phpfn50.php" ?>
  12. <?php include "osj-osj2dapplicationsinfo.php" ?>
  13. <?php include "osj-userfn50.php" ?>
  14. <?php include "osj-osj2dusersinfo.php" ?>
  15. <?php
  16. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
  17. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
  18. header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
  19. header("Cache-Control: post-check=0, pre-check=0", false);
  20. header("Pragma: no-cache"); // HTTP/1.0
  21. ?>
  22. <?php
  23. // Open connection to the database
  24. $conn = ew_Connect();
  25. ?>
  26. <?php
  27. $Security = new cAdvancedSecurity();
  28. ?>
  29. <?php
  30. if (!$Security->IsLoggedIn()) $Security->AutoLogin();
  31. $Security->LoadCurrentUserLevel('osj-applications');
  32. if (!$Security->IsLoggedIn()) {
  33. $Security->SaveLastUrl();
  34. Page_Terminate("osj-login.php");
  35. }
  36. if (!$Security->CanSearch()) {
  37. $Security->SaveLastUrl();
  38. Page_Terminate("osj-osj2dapplicationslist.php");
  39. }
  40. if ($Security->IsLoggedIn() && $Security->CurrentUserID() == "") {
  41. $_SESSION[EW_SESSION_MESSAGE] = "You do not have the right permission to view the page";
  42. Page_Terminate("osj-login.php");
  43. }
  44. ?>
  45. <?php
  46. // Common page loading event (in userfn*.php)
  47. Page_Loading();
  48. ?>
  49. <?php
  50. // Page load event, used in current page
  51. Page_Load();
  52. ?>
  53. <?php
  54. $osj2Dapplications->Export = @$_GET["export"]; // Get export parameter
  55. $sExport = $osj2Dapplications->Export; // Get export parameter, used in header
  56. $sExportFile = $osj2Dapplications->TableVar; // Get export file, used in header
  57. ?>
  58. <?php
  59. // Get action
  60. $osj2Dapplications->CurrentAction = @$_POST["a_search"];
  61. switch ($osj2Dapplications->CurrentAction) {
  62. case "S": // Get Search Criteria
  63. // Build search string for advanced search, remove blank field
  64. $sSrchStr = BuildAdvancedSearch();
  65. if ($sSrchStr <> "") {
  66. Page_Terminate("osj-osj2dapplicationslist.php?" . $sSrchStr); // Go to list page
  67. }
  68. break;
  69. default: // Restore search settings
  70. LoadAdvancedSearch();
  71. }
  72. // Render row for search
  73. $osj2Dapplications->RowType = EW_ROWTYPE_SEARCH;
  74. RenderRow();
  75. ?>
  76. <?php include "osj-header.php" ?>
  77. <script type="text/javascript">
  78. <!--
  79. var EW_PAGE_ID = "search"; // Page id
  80. var EW_SHOW_HIGHLIGHT = "Show highlight";
  81. var EW_HIDE_HIGHLIGHT = "Hide highlight";
  82. //-->
  83. </script>
  84. <script type="text/javascript">
  85. <!--
  86. function ew_ValidateForm(fobj) {
  87. if (fobj.a_confirm && fobj.a_confirm.value == "F")
  88. return true;
  89. var i, elm, aelm, infix;
  90. var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
  91. for (i=0; i<rowcnt; i++) {
  92. infix = (fobj.key_count) ? String(i+1) : "";
  93. elm = fobj.elements["x" + infix + "_application_id"];
  94. if (elm && !ew_CheckInteger(elm.value)) {
  95. if (!ew_OnError(elm, "Incorrect integer - Application ID"))
  96. return false;
  97. }
  98. elm = fobj.elements["x" + infix + "_post_id"];
  99. if (elm && !ew_CheckInteger(elm.value)) {
  100. if (!ew_OnError(elm, "A post id is required."))
  101. return false;
  102. }
  103. elm = fobj.elements["x" + infix + "_application_email"];
  104. if (elm && !ew_CheckEmail(elm.value)) {
  105. if (!ew_OnError(elm, "All applications require an email address."))
  106. return false;
  107. }
  108. }
  109. return true;
  110. }
  111. //-->
  112. </script>
  113. <script type="text/javascript">
  114. <!--
  115. var ew_DHTMLEditors = [];
  116. //-->
  117. </script>
  118. <script type="text/javascript">
  119. <!--
  120. // js for Popup Calendar
  121. //-->
  122. </script>
  123. <script language="JavaScript" type="text/javascript">
  124. <!--
  125. // Write your client script here, no need to add script tags.
  126. // To include another .js script, use:
  127. // ew_ClientScriptInclude("my_javascript.js");
  128. //-->
  129. </script>
  130. <p><span class="phpmaker">Search TABLE: Applications<br><br><a href="osj-osj2dapplicationslist.php">Back to List</a></span></p>
  131. <form name="fosj2Dapplicationssearch" id="fosj2Dapplicationssearch" action="osj-osj2dapplicationssrch.php" method="post" onSubmit="return ew_ValidateForm(this);">
  132. <p>
  133. <input type="hidden" name="a_search" id="a_search" value="S">
  134. <table class="ewTable">
  135. <tr class="ewTableRow">
  136. <td class="ewTableHeader">Application ID</td>
  137. <td<?php echo $osj2Dapplications->application_id->CellAttributes() ?>><span class="ewSearchOpr">=<input type="hidden" name="z_application_id" id="z_application_id" value="="></span></td>
  138. <td<?php echo $osj2Dapplications->application_id->CellAttributes() ?>><span class="phpmaker">
  139. <input type="text" name="x_application_id" id="x_application_id" value="<?php echo $osj2Dapplications->application_id->EditValue ?>"<?php echo $osj2Dapplications->application_id->EditAttributes() ?>>
  140. </span></td>
  141. </tr>
  142. <tr class="ewTableAltRow">
  143. <td class="ewTableHeader">User ID</td>
  144. <td<?php echo $osj2Dapplications->user_id->CellAttributes() ?>><span class="ewSearchOpr">=<input type="hidden" name="z_user_id" id="z_user_id" value="="></span></td>
  145. <td<?php echo $osj2Dapplications->user_id->CellAttributes() ?>><span class="phpmaker">
  146. <?php if (!$Security->IsAdmin() && $Security->IsLoggedIn()) { // Non system admin ?>
  147. <input type="hidden" name="x_user_id" id="x_user_id" value="<?php echo ew_HtmlEncode($osj2Dapplications->user_id->AdvancedSearch->SearchValue) ?>">
  148. <?php } else { ?>
  149. <input type="text" name="x_user_id" id="x_user_id" size="30" value="<?php echo $osj2Dapplications->user_id->EditValue ?>"<?php echo $osj2Dapplications->user_id->EditAttributes() ?>>
  150. <?php } ?>
  151. </span></td>
  152. </tr>
  153. <tr class="ewTableRow">
  154. <td class="ewTableHeader">Resume</td>
  155. <td<?php echo $osj2Dapplications->resume_id->CellAttributes() ?>><span class="ewSearchOpr">=<input type="hidden" name="z_resume_id" id="z_resume_id" value="="></span></td>
  156. <td<?php echo $osj2Dapplications->resume_id->CellAttributes() ?>><span class="phpmaker">
  157. <select id="x_resume_id" name="x_resume_id"<?php echo $osj2Dapplications->resume_id->EditAttributes() ?>>
  158. <!--option value="">Please Select</option-->
  159. <?php
  160. if (is_array($osj2Dapplications->resume_id->EditValue)) {
  161. $arwrk = $osj2Dapplications->resume_id->EditValue;
  162. $rowswrk = count($arwrk);
  163. for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) {
  164. $selwrk = (strval($osj2Dapplications->resume_id->AdvancedSearch->SearchValue) == strval($arwrk[$rowcntwrk][0])) ? " selected" : "";
  165. ?>
  166. <option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
  167. <?php echo $arwrk[$rowcntwrk][1] ?>
  168. </option>
  169. <?php
  170. }
  171. }
  172. ?>
  173. </select>
  174. </span></td>
  175. </tr>
  176. <tr class="ewTableAltRow">
  177. <td class="ewTableHeader">Post ID</td>
  178. <td<?php echo $osj2Dapplications->post_id->CellAttributes() ?>><span class="ewSearchOpr">=<input type="hidden" name="z_post_id" id="z_post_id" value="="></span></td>
  179. <td<?php echo $osj2Dapplications->post_id->CellAttributes() ?>><span class="phpmaker">
  180. <input type="text" name="x_post_id" id="x_post_id" size="30" value="<?php echo $osj2Dapplications->post_id->EditValue ?>"<?php echo $osj2Dapplications->post_id->EditAttributes() ?>>
  181. </span></td>
  182. </tr>
  183. <tr class="ewTableRow">
  184. <td class="ewTableHeader">Application Date</td>
  185. <td<?php echo $osj2Dapplications->application_date->CellAttributes() ?>><span class="ewSearchOpr"><select name="z_application_date" id="z_application_date"><option value="="<?php echo ($osj2Dapplications->application_date->AdvancedSearch->SearchOperator=="=")?" selected":"" ?>>=</option><option value="<>"<?php echo ($osj2Dapplications->application_date->AdvancedSearch->SearchOperator=="<>")?" selected":"" ?>><></option><option value="<"<?php echo ($osj2Dapplications->application_date->AdvancedSearch->SearchOperator=="<")?" selected":"" ?>><</option><option value="<="<?php echo ($osj2Dapplications->application_date->AdvancedSearch->SearchOperator=="<=")?" selected":"" ?>><=</option><option value=">"<?php echo ($osj2Dapplications->application_date->AdvancedSearch->SearchOperator==">")?" selected":"" ?>>></option><option value=">="<?php echo ($osj2Dapplications->application_date->AdvancedSearch->SearchOperator==">=")?" selected":"" ?>>>=</option></select></span></td>
  186. <td<?php echo $osj2Dapplications->application_date->CellAttributes() ?>><span class="phpmaker">
  187. <input type="text" name="x_application_date" id="x_application_date" value="<?php echo $osj2Dapplications->application_date->EditValue ?>"<?php echo $osj2Dapplications->application_date->EditAttributes() ?>>
  188. </span></td>
  189. </tr>
  190. <tr class="ewTableAltRow">
  191. <td class="ewTableHeader">Application Email</td>
  192. <td<?php echo $osj2Dapplications->application_email->CellAttributes() ?>><span class="ewSearchOpr">contains<input type="hidden" name="z_application_email" id="z_application_email" value="LIKE"></span></td>
  193. <td<?php echo $osj2Dapplications->application_email->CellAttributes() ?>><span class="phpmaker">
  194. <input type="text" name="x_application_email" id="x_application_email" title="Email" size="30" maxlength="255" value="<?php echo $osj2Dapplications->application_email->EditValue ?>"<?php echo $osj2Dapplications->application_email->EditAttributes() ?>>
  195. </span></td>
  196. </tr>
  197. <tr class="ewTableRow">
  198. <td class="ewTableHeader">Application Comments</td>
  199. <td<?php echo $osj2Dapplications->application_text->CellAttributes() ?>><span class="ewSearchOpr">contains<input type="hidden" name="z_application_text" id="z_application_text" value="LIKE"></span></td>
  200. <td<?php echo $osj2Dapplications->application_text->CellAttributes() ?>><span class="phpmaker">
  201. <textarea name="x_application_text" id="x_application_text" cols="35" rows="4"<?php echo $osj2Dapplications->application_text->EditAttributes() ?>><?php echo $osj2Dapplications->application_text->EditValue ?></textarea>
  202. </span></td>
  203. </tr>
  204. <tr class="ewTableAltRow">
  205. <td class="ewTableHeader">Application File Name</td>
  206. <td<?php echo $osj2Dapplications->application_file_name->CellAttributes() ?>><span class="ewSearchOpr"><select name="z_application_file_name" id="z_application_file_name"><option value="="<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="=")?" selected":"" ?>>=</option><option value="<>"<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="<>")?" selected":"" ?>><></option><option value="<"<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="<")?" selected":"" ?>><</option><option value="<="<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="<=")?" selected":"" ?>><=</option><option value=">"<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator==">")?" selected":"" ?>>></option><option value=">="<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator==">=")?" selected":"" ?>>>=</option><option value="LIKE"<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="LIKE")?" selected":"" ?>>contains</option><option value="NOT LIKE"<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="NOT LIKE")?" selected":"" ?>>not contains</option><option value="STARTS WITH"<?php echo ($osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator=="STARTS WITH")?" selected":"" ?>>starts with</option></select></span></td>
  207. <td<?php echo $osj2Dapplications->application_file_name->CellAttributes() ?>><span class="phpmaker">
  208. <input type="text" name="x_application_file_name" id="x_application_file_name" title="Resume Attachment Filename" size="30" maxlength="255" value="<?php echo $osj2Dapplications->application_file_name->EditValue ?>"<?php echo $osj2Dapplications->application_file_name->EditAttributes() ?>>
  209. </span></td>
  210. </tr>
  211. </table>
  212. <p>
  213. <input type="submit" name="Action" id="Action" value=" Search ">
  214. <input type="button" name="Reset" id="Reset" value=" Reset " onclick="ew_ClearForm(this.form);">
  215. </form>
  216. <script language="JavaScript" type="text/javascript">
  217. <!--
  218. // Write your table-specific startup script here
  219. // document.write("page loaded");
  220. //-->
  221. </script>
  222. <?php include "osj-footer.php" ?>
  223. <?php
  224. // If control is passed here, simply terminate the page without redirect
  225. Page_Terminate();
  226. // -----------------------------------------------------------------
  227. // Subroutine Page_Terminate
  228. // - called when exit page
  229. // - clean up connection and objects
  230. // - if url specified, redirect to url, otherwise end response
  231. function Page_Terminate($url = "") {
  232. global $conn;
  233. // Page unload event, used in current page
  234. Page_Unload();
  235. // Global page unloaded event (in userfn*.php)
  236. Page_Unloaded();
  237. // Close Connection
  238. $conn->Close();
  239. // Go to url if specified
  240. if ($url <> "") {
  241. ob_end_clean();
  242. header("Location: $url");
  243. }
  244. exit();
  245. }
  246. ?>
  247. <?php
  248. // Build advanced search
  249. function BuildAdvancedSearch() {
  250. global $osj2Dapplications;
  251. $sSrchUrl = "";
  252. // Field application_id
  253. BuildSearchUrl($sSrchUrl, $osj2Dapplications->application_id, @$_POST["x_application_id"], @$_POST["z_application_id"], @$_POST["v_application_id"], @$_POST["y_application_id"], @$_POST["w_application_id"]);
  254. // Field user_id
  255. BuildSearchUrl($sSrchUrl, $osj2Dapplications->user_id, @$_POST["x_user_id"], @$_POST["z_user_id"], @$_POST["v_user_id"], @$_POST["y_user_id"], @$_POST["w_user_id"]);
  256. // Field resume_id
  257. BuildSearchUrl($sSrchUrl, $osj2Dapplications->resume_id, @$_POST["x_resume_id"], @$_POST["z_resume_id"], @$_POST["v_resume_id"], @$_POST["y_resume_id"], @$_POST["w_resume_id"]);
  258. // Field post_id
  259. BuildSearchUrl($sSrchUrl, $osj2Dapplications->post_id, @$_POST["x_post_id"], @$_POST["z_post_id"], @$_POST["v_post_id"], @$_POST["y_post_id"], @$_POST["w_post_id"]);
  260. // Field application_date
  261. BuildSearchUrl($sSrchUrl, $osj2Dapplications->application_date, ew_UnFormatDateTime(@$_POST["x_application_date"],6), @$_POST["z_application_date"], @$_POST["v_application_date"], ew_UnFormatDateTime(@$_POST["y_application_date"],6), @$_POST["w_application_date"]);
  262. // Field application_email
  263. BuildSearchUrl($sSrchUrl, $osj2Dapplications->application_email, @$_POST["x_application_email"], @$_POST["z_application_email"], @$_POST["v_application_email"], @$_POST["y_application_email"], @$_POST["w_application_email"]);
  264. // Field application_text
  265. BuildSearchUrl($sSrchUrl, $osj2Dapplications->application_text, @$_POST["x_application_text"], @$_POST["z_application_text"], @$_POST["v_application_text"], @$_POST["y_application_text"], @$_POST["w_application_text"]);
  266. // Field application_file_name
  267. BuildSearchUrl($sSrchUrl, $osj2Dapplications->application_file_name, @$_POST["x_application_file_name"], @$_POST["z_application_file_name"], @$_POST["v_application_file_name"], @$_POST["y_application_file_name"], @$_POST["w_application_file_name"]);
  268. return $sSrchUrl;
  269. }
  270. // Function to build search URL
  271. function BuildSearchUrl(&$Url, &$Fld, $FldVal, $FldOpr, $FldCond, $FldVal2, $FldOpr2) {
  272. $sWrk = "";
  273. $FldParm = substr($Fld->FldVar, 2);
  274. $FldVal = ew_StripSlashes($FldVal);
  275. if (is_array($FldVal)) $FldVal = implode(",", $FldVal);
  276. $FldVal2 = ew_StripSlashes($FldVal2);
  277. if (is_array($FldVal2)) $FldVal2 = implode(",", $FldVal2);
  278. $FldOpr = strtoupper(trim($FldOpr));
  279. if ($FldOpr == "BETWEEN") {
  280. $IsValidValue = ($Fld->FldDataType <> EW_DATATYPE_NUMBER) ||
  281. ($Fld->FldDataType == EW_DATATYPE_NUMBER && is_numeric($FldVal) && is_numeric($FldVal2));
  282. if ($FldVal <> "" && $FldVal2 <> "" && $IsValidValue) {
  283. $sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
  284. "&y_" . $FldParm . "=" . urlencode($FldVal2) .
  285. "&z_" . $FldParm . "=" . urlencode($FldOpr);
  286. }
  287. } elseif ($FldOpr == "IS NULL" || $FldOpr == "IS NOT NULL") {
  288. $sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
  289. "&z_" . $FldParm . "=" . urlencode($FldOpr);
  290. } else {
  291. $IsValidValue = ($Fld->FldDataType <> EW_DATATYPE_NUMBER) ||
  292. ($Fld->FldDataType = EW_DATATYPE_NUMBER && is_numeric($FldVal));
  293. if ($FldVal <> "" && $IsValidValue && ew_IsValidOpr($FldOpr, $Fld->FldDataType)) {
  294. $sWrk = "x_" . $FldParm . "=" . urlencode($FldVal) .
  295. "&z_" . $FldParm . "=" . urlencode($FldOpr);
  296. }
  297. $IsValidValue = ($Fld->FldDataType <> EW_DATATYPE_NUMBER) ||
  298. ($Fld->FldDataType = EW_DATATYPE_NUMBER && is_numeric($FldVal2));
  299. if ($FldVal2 <> "" && $IsValidValue && ew_IsValidOpr($FldOpr2, $Fld->FldDataType)) {
  300. if ($sWrk <> "") $sWrk .= "&v_" . $FldParm . "=" . urlencode($FldCond) . "&";
  301. $sWrk .= "&y_" . $FldParm . "=" . urlencode($FldVal2) .
  302. "&w_" . $FldParm . "=" . urlencode($FldOpr2);
  303. }
  304. }
  305. if ($sWrk <> "") {
  306. if ($Url <> "") $Url .= "&";
  307. $Url .= $sWrk;
  308. }
  309. }
  310. ?>
  311. <?php
  312. // Render row values based on field settings
  313. function RenderRow() {
  314. global $conn, $Security, $osj2Dapplications;
  315. // Call Row Rendering event
  316. $osj2Dapplications->Row_Rendering();
  317. // Common render codes for all row types
  318. if ($osj2Dapplications->RowType == EW_ROWTYPE_VIEW) { // View row
  319. } elseif ($osj2Dapplications->RowType == EW_ROWTYPE_ADD) { // Add row
  320. } elseif ($osj2Dapplications->RowType == EW_ROWTYPE_EDIT) { // Edit row
  321. } elseif ($osj2Dapplications->RowType == EW_ROWTYPE_SEARCH) { // Search row
  322. // application_id
  323. $osj2Dapplications->application_id->EditCustomAttributes = "";
  324. $osj2Dapplications->application_id->EditValue = ew_HtmlEncode($osj2Dapplications->application_id->AdvancedSearch->SearchValue);
  325. // user_id
  326. $osj2Dapplications->user_id->EditCustomAttributes = "";
  327. if (!$Security->IsAdmin() && $Security->IsLoggedIn()) { // Non system admin
  328. $osj2Dapplications->user_id->AdvancedSearch->SearchValue = $Security->CurrentUserID();
  329. $osj2Dapplications->user_id->EditValue = $osj2Dapplications->user_id->AdvancedSearch->SearchValue;
  330. $osj2Dapplications->user_id->CssStyle = "";
  331. $osj2Dapplications->user_id->CssClass = "";
  332. $osj2Dapplications->user_id->ViewCustomAttributes = "";
  333. } else {
  334. $osj2Dapplications->user_id->EditValue = ew_HtmlEncode($osj2Dapplications->user_id->AdvancedSearch->SearchValue);
  335. }
  336. // resume_id
  337. $osj2Dapplications->resume_id->EditCustomAttributes = "";
  338. $sSqlWrk = "SELECT `resume_id`, `resume_title` FROM `osj-resumes`";
  339. $sSqlWrk .= " WHERE (" . "`user_id` = ".CurrentUserID()."" . ")";
  340. $sSqlWrk .= " ORDER BY `resume_title` Asc";
  341. $rswrk = $conn->Execute($sSqlWrk);
  342. $arwrk = ($rswrk) ? $rswrk->GetRows() : array();
  343. if ($rswrk) $rswrk->Close();
  344. array_unshift($arwrk, array("", "Please Select"));
  345. $osj2Dapplications->resume_id->EditValue = $arwrk;
  346. // post_id
  347. $osj2Dapplications->post_id->EditCustomAttributes = "";
  348. $osj2Dapplications->post_id->EditValue = ew_HtmlEncode($osj2Dapplications->post_id->AdvancedSearch->SearchValue);
  349. // application_date
  350. $osj2Dapplications->application_date->EditCustomAttributes = "";
  351. $osj2Dapplications->application_date->EditValue = ew_HtmlEncode(ew_FormatDateTime($osj2Dapplications->application_date->AdvancedSearch->SearchValue, 6));
  352. // application_email
  353. $osj2Dapplications->application_email->EditCustomAttributes = "";
  354. $osj2Dapplications->application_email->EditValue = ew_HtmlEncode($osj2Dapplications->application_email->AdvancedSearch->SearchValue);
  355. // application_text
  356. $osj2Dapplications->application_text->EditCustomAttributes = "";
  357. $osj2Dapplications->application_text->EditValue = ew_HtmlEncode($osj2Dapplications->application_text->AdvancedSearch->SearchValue);
  358. // application_file_name
  359. $osj2Dapplications->application_file_name->EditCustomAttributes = "";
  360. $osj2Dapplications->application_file_name->EditValue = ew_HtmlEncode($osj2Dapplications->application_file_name->AdvancedSearch->SearchValue);
  361. }
  362. // Call Row Rendered event
  363. $osj2Dapplications->Row_Rendered();
  364. }
  365. ?>
  366. <?php
  367. // Load advanced search
  368. function LoadAdvancedSearch() {
  369. global $osj2Dapplications;
  370. $osj2Dapplications->application_id->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_application_id");
  371. $osj2Dapplications->user_id->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_user_id");
  372. $osj2Dapplications->resume_id->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_resume_id");
  373. $osj2Dapplications->post_id->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_post_id");
  374. $osj2Dapplications->application_date->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_application_date");
  375. $osj2Dapplications->application_date->AdvancedSearch->SearchOperator = $osj2Dapplications->getAdvancedSearch("z_application_date");
  376. $osj2Dapplications->application_email->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_application_email");
  377. $osj2Dapplications->application_text->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_application_text");
  378. $osj2Dapplications->application_file_name->AdvancedSearch->SearchValue = $osj2Dapplications->getAdvancedSearch("x_application_file_name");
  379. $osj2Dapplications->application_file_name->AdvancedSearch->SearchOperator = $osj2Dapplications->getAdvancedSearch("z_application_file_name");
  380. }
  381. ?>
  382. <?php
  383. // Page Load event
  384. function Page_Load() {
  385. //echo "Page Load";
  386. }
  387. // Page Unload event
  388. function Page_Unload() {
  389. //echo "Page Unload";
  390. }
  391. ?>