PageRenderTime 55ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/promotion/summary/viewcv.php

https://bitbucket.org/lecturer34/hrmis
PHP | 654 lines | 565 code | 75 blank | 14 comment | 56 complexity | 880064a5acbc26e994ac9a5e4c7b738b MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. if (!function_exists("GetSQLValueString")) {
  3. function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  4. {
  5. if (PHP_VERSION < 6) {
  6. $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  7. }
  8. $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  9. switch ($theType) {
  10. case "text":
  11. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  12. break;
  13. case "long":
  14. case "int":
  15. $theValue = ($theValue != "") ? intval($theValue) : "NULL";
  16. break;
  17. case "double":
  18. $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
  19. break;
  20. case "date":
  21. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  22. break;
  23. case "defined":
  24. $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
  25. break;
  26. }
  27. return $theValue;
  28. }
  29. }
  30. function generatecv($employeeid,$year)
  31. {
  32. $employid_emploeeRec=$employeeid;
  33. $query_emploeeRec = sprintf("SELECT tblemployee.firstname, tblemployee.surname, tblemployee.othernames, tblemployee.dateoffirstappointment,
  34. tblemployee.salaryonappointment, countryname, tblemployee.dateofbirth, tblemployee.placeofbirth, tblemployee.maritalstatus,
  35. tblemployee.gender, tblemployee.permanentaddress, tbldepartment.name as department, tblstate.statename as state, tbllga.lganame as lga,
  36. tblrank.name as rank FROM tblemployee, tblconfirmation, tbldepartment, tblrank, tblstate, tbllga, tblcountries
  37. WHERE tblemployee.department=tbldepartment.departmentid AND tblemployee.rankonemployment=tblrank.rankid AND tblemployee.lgaoforigin=tbllga.lgaid AND
  38. tbllga.stateid=tblstate.stateid AND tblemployee.nationality=tblcountries.countryid AND tblemployee.employeeid=%s",
  39. GetSQLValueString($employid_emploeeRec, "int"));
  40. $emploeeRec = mysql_query($query_emploeeRec) or die(mysql_error());
  41. $row_emploeeRec = mysql_fetch_assoc($emploeeRec);
  42. $totalRows_emploeeRec = mysql_num_rows($emploeeRec);
  43. $colname_confirmation = "-1";
  44. if (isset($employeeid)) {
  45. $colname_confirmation = $employeeid;
  46. }
  47. $query_confirmation = sprintf("SELECT effectivedate FROM tblconfirmation WHERE employeeid = %s", GetSQLValueString($colname_confirmation, "int"));
  48. $confirmation = mysql_query($query_confirmation) or die(mysql_error());
  49. $row_confirmation = mysql_fetch_assoc($confirmation);
  50. $totalRows_confirmation = mysql_num_rows($confirmation);
  51. $colname_promotion = "-1";
  52. if (isset($employeeid)) {
  53. $colname_promotion = $employeeid;
  54. }
  55. $query_promotion = sprintf("SELECT personnelno, rank, salaryid, effectivedate FROM tblpromotions WHERE employeeid = %s", GetSQLValueString($colname_promotion, "int"));
  56. $promotion = mysql_query($query_promotion) or die(mysql_error());
  57. $row_promotion = mysql_fetch_assoc($promotion);
  58. $totalRows_promotion = mysql_num_rows($promotion);
  59. $colname_contactaddr = "-1";
  60. if (isset($employeeid)) {
  61. $colname_contactaddr = $employeeid;
  62. }
  63. $query_contactaddr = sprintf("SELECT tblcontactaddr.city, tblcontactaddr.`state`, tblcontactaddr.contactaddress, tblstate.statename FROM tblcontactaddr, tblstate WHERE employeeid = %s AND tblstate.stateid=tblcontactaddr.`state`", GetSQLValueString($colname_contactaddr, "int"));
  64. $contactaddr = mysql_query($query_contactaddr) or die(mysql_error());
  65. $row_contactaddr = mysql_fetch_assoc($contactaddr);
  66. $totalRows_contactaddr = mysql_num_rows($contactaddr);
  67. $colname_workexp = "-1";
  68. if (isset($employeeid)) {
  69. $colname_workexp = $employeeid;
  70. }
  71. $query_workexp = sprintf("SELECT * FROM tblempworkingexp WHERE employeeid = %s ORDER BY `from` DESC", GetSQLValueString($colname_workexp, "int"));
  72. $workexp = mysql_query($query_workexp) or die(mysql_error());
  73. $row_workexp = mysql_fetch_assoc($workexp);
  74. $totalRows_workexp = mysql_num_rows($workexp);
  75. $colname_qualifications = "-1";
  76. if (isset($employeeid)) {
  77. $colname_qualifications = $employeeid;
  78. }
  79. $query_qualifications = sprintf("SELECT tblqualifications_lookup.`certificate`, tblqualification.qualificationid, tblqualification.employeeid, tblqualification.yearobtained, tblqualification.institutionobtained, tblqualification.course, tblqualification.grade FROM tblqualification, tblqualificationcategory,tblqualifications_lookup WHERE employeeid = %s AND tblqualification.category=tblqualificationcategory.id and tblqualification.category=1 AND tblqualifications_lookup.id=tblqualification.qualificationtype", GetSQLValueString($colname_qualifications, "int"));
  80. $qualifications = mysql_query($query_qualifications) or die(mysql_error());
  81. $row_qualifications = mysql_fetch_assoc($qualifications);
  82. $totalRows_qualifications = mysql_num_rows($qualifications);
  83. $colname__profQualification = "-1";
  84. if (isset($employeeid)){
  85. $colname__profQualification = $employeeid;
  86. }
  87. $query__profQualification = sprintf("SELECT tblqualifications_lookup.`certificate`, tblqualification.qualificationid, tblqualification.employeeid, tblqualification.yearobtained, tblqualification.institutionobtained, tblqualification.course, tblqualification.grade FROM tblqualification, tblqualificationcategory,tblqualifications_lookup WHERE employeeid = %s AND tblqualification.category=tblqualificationcategory.id and tblqualification.category='2' AND tblqualifications_lookup.id=tblqualification.qualificationtype", GetSQLValueString($colname_qualifications, "int"));
  88. $profQualification = mysql_query($query__profQualification) or die(mysql_error());
  89. $row__profQualification = mysql_fetch_assoc($profQualification);
  90. $totalRows__profQualification = mysql_num_rows($profQualification);
  91. $colname_languages = "-1";
  92. if (isset($employeeid)) {
  93. $colname_languages = $employeeid;
  94. }
  95. $query_languages = sprintf("SELECT * FROM tbllanguagesspoken WHERE employeeid = %s", GetSQLValueString($colname_languages, "int"));
  96. $languages = mysql_query($query_languages) or die(mysql_error());
  97. $row_languages = mysql_fetch_assoc($languages);
  98. $totalRows_languages = mysql_num_rows($languages);
  99. $colname_positions = "-1";
  100. if (isset($employeeid)) {
  101. $colname_positions = $employeeid;
  102. }
  103. $query_positions = sprintf("SELECT * FROM tblpositionsheld WHERE employeeid = %s", GetSQLValueString($colname_positions, "int"));
  104. $positions = mysql_query($query_positions) or die(mysql_error());
  105. $row_positions = mysql_fetch_assoc($positions);
  106. $totalRows_positions = mysql_num_rows($positions);
  107. $colname_profSoc = "-1";
  108. if (isset($employeeid)) {
  109. $colname_profSoc = $employeeid;
  110. }
  111. $query_profSoc = sprintf("SELECT * FROM tblprofmembership WHERE employeeid = %s", GetSQLValueString($colname_profSoc, "int"));
  112. $profSoc = mysql_query($query_profSoc) or die(mysql_error());
  113. $row_profSoc = mysql_fetch_assoc($profSoc);
  114. $totalRows_profSoc = mysql_num_rows($profSoc);
  115. $colname_teaching = "-1";
  116. if (isset($employeeid)) {
  117. $colname_teaching = $employeeid;
  118. }
  119. $query_teaching = sprintf("SELECT * FROM tblteaching WHERE employeeid = %s", GetSQLValueString($colname_teaching, "int"));
  120. $teaching = mysql_query($query_teaching) or die(mysql_error());
  121. $row_teaching = mysql_fetch_assoc($teaching);
  122. $totalRows_teaching = mysql_num_rows($teaching);
  123. $colname_adminduties = "-1";
  124. if (isset($employeeid)) {
  125. $colname_adminduties = $employeeid;
  126. }
  127. $query_adminduties = sprintf("SELECT tbladminduty.dutylevel, tbladminduty.datefrom, tbladminduty.dateto, tbladminduty.institution, tbladmindutytype.dutyname FROM tbladminduty, tbladmindutytype WHERE employeeid = %s AND tbladminduty.dutytype=tbladmindutytype.dutytypeid", GetSQLValueString($colname_adminduties, "int"));
  128. $adminduties = mysql_query($query_adminduties) or die(mysql_error());
  129. $row_adminduties = mysql_fetch_assoc($adminduties);
  130. $totalRows_adminduties = mysql_num_rows($adminduties);
  131. $colname_localconferences = "-1";
  132. if (isset($employeeid)) {
  133. $colname_localconferences = $employeeid;
  134. }
  135. $query_localconferences = sprintf("SELECT * FROM tblconferences WHERE employeeid = %s AND tblconferences.conferencetype='local' ORDER BY datefrom DESC", GetSQLValueString($colname_localconferences, "int"));
  136. //echo $query_localconferences; exit;
  137. $localconferences = mysql_query($query_localconferences) or die(mysql_error());
  138. $row_localconferences = mysql_fetch_assoc($localconferences);
  139. $totalRows_localconferences = mysql_num_rows($localconferences);
  140. $colname_internationalconf = "-1";
  141. if (isset($employeeid)) {
  142. $colname_internationalconf = $employeeid;
  143. }
  144. $query_internationalconf = sprintf("SELECT * FROM tblconferences WHERE employeeid = %s AND tblconferences.conferencetype='international' ORDER BY datefrom DESC", GetSQLValueString($colname_internationalconf, "int"));
  145. $internationalconf = mysql_query($query_internationalconf) or die(mysql_error());
  146. $row_internationalconf = mysql_fetch_assoc($internationalconf);
  147. $totalRows_internationalconf = mysql_num_rows($internationalconf);
  148. $emplid_publications = "-1";
  149. if (isset($employeeid)) {
  150. $emplid_publications = $employeeid;
  151. }
  152. $query_publications = sprintf("SELECT tbljournalspublication.title, tbljournalspublication.journalname, tbljournalspublication.authors, tbljournalspublication.publicationdate, tbljournalspublication.url, tblpublictiontype.publictiontypeid, tblpublictiontype.eventoractivity FROM tbljournalspublication, tblpublictiontype WHERE tblpublictiontype.publictiontypeid=tbljournalspublication.typeid AND tbljournalspublication.employeeid=%s and typeid=1", GetSQLValueString($emplid_publications, "int"));
  153. $publications = mysql_query($query_publications) or die(mysql_error());
  154. $row_publications = mysql_fetch_assoc($publications);
  155. $totalRows_publications = mysql_num_rows($publications);
  156. $emplid_cpublications = "-1";
  157. if (isset($employeeid)) {
  158. $emplid_cpublications = $employeeid;
  159. }
  160. $query_cpublications = sprintf("SELECT tbljournalspublication.title, tbljournalspublication.journalname, tbljournalspublication.authors, tbljournalspublication.publicationdate, tbljournalspublication.url, tblpublictiontype.publictiontypeid, tblpublictiontype.eventoractivity FROM tbljournalspublication, tblpublictiontype WHERE tblpublictiontype.publictiontypeid=tbljournalspublication.typeid AND tbljournalspublication.employeeid=%s and typeid=2", GetSQLValueString($emplid_cpublications, "int"));
  161. $cpublications = mysql_query($query_cpublications) or die(mysql_error());
  162. $row_cpublications = mysql_fetch_assoc($cpublications);
  163. $totalRows_cpublications = mysql_num_rows($cpublications);
  164. $colname_commservice = "-1";
  165. if (isset($employeeid)) {
  166. $colname_commservice = $employeeid;
  167. }
  168. $query_commservice = sprintf("SELECT * FROM tblcommunityservice WHERE employeeid = %s", GetSQLValueString($colname_commservice, "int"));
  169. $commservice = mysql_query($query_commservice) or die(mysql_error());
  170. $row_commservice = mysql_fetch_assoc($commservice);
  171. $totalRows_commservice = mysql_num_rows($commservice);
  172. $query_pubtypes = "SELECT * FROM tblpublictiontype ORDER BY publictiontypeid ASC";
  173. $pubtypes = mysql_query($query_pubtypes) or die(mysql_error());
  174. $row_pubtypes = mysql_fetch_assoc($pubtypes);
  175. $totalRows_pubtypes = mysql_num_rows($pubtypes);
  176. /*
  177. $pubtypes = array();
  178. for($i=0; $i<$totalRows_publications; $i++){
  179. $pubtypes[]=$row_pubtypes['eventoractivity'];
  180. }
  181. var_dump($pubtypes);
  182. exit;
  183. */
  184. ?>
  185. <!DOCTYPE html>
  186. <html>
  187. <head>
  188. <title>CV</title>
  189. <script src="../js/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
  190. <script src="../js/jquery/jquery-ui.min.js" type="text/javascript"></script>
  191. <script src="../js/jquery/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
  192. <script src="../js/jquery/jquery.validate.min.js" type="text/javascript"></script>
  193. <script src="../js/jquery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
  194. <script src="../js/jquery/jquery_ui_datepicker.js" type="text/javascript"></script>
  195. <script src="../js/jquery/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
  196. <script src="../js/site/Site.js" type="text/javascript"></script>
  197. <script src="../js/jquery.leanModal.min.js" type="text/javascript"></script>
  198. <script src="../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
  199. <!-- CSS Imports -->
  200. <link href="../css/jquery/jquery_ui_datepicker.css" rel="stylesheet" type="text/css" />
  201. <link href="../css/site/css3buttons.css" rel="stylesheet" type="text/css" />
  202. <link href="../css/centeredmenu.css" rel="stylesheet" type="text/css" />
  203. <link href="../css/site/site.css" rel="stylesheet" type="text/css" />
  204. <link href="../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
  205. </head>
  206. <body>
  207. <div id="page">
  208. <div id="main">
  209. <div id="header" style="position: relative;">
  210. <img alt="abu-logo" height="129" src="../images/banner.png" style="z-index: 10; width: 950px;">
  211. <div id="site-nav" style="position: absolute; bottom: 0; right: 0;">
  212. <ul>
  213. </ul>
  214. </div>
  215. <noscript>
  216. <marquee><h4> It is observed that your browser does not support JavaScript! Some vital portions of this application may not work optimally if javascript is not enabled. You are thus advised to enable javascript for this application to function as expected.</h4></marquee>
  217. <?php
  218. //exit;
  219. ?>
  220. </noscript>
  221. <!-- #sitenav --></div>
  222. <p><!-- #header -->
  223. <?php
  224. //include("footer.html");
  225. ?>
  226. </p>
  227. <h1 align="center">CURRICULUM VITAE</h1>
  228. <table width="97%" border="0">
  229. <tr>
  230. <td>1.</td>
  231. <td width="40%"><strong>Name in Full:</strong></td>
  232. <td><?php echo strtoupper($row_emploeeRec['surname']).", ". ucfirst(strtolower($row_emploeeRec['firstname'])). " ". ucfirst(strtolower($row_emploeeRec['othernames'])); ?></td>
  233. </tr>
  234. <tr>
  235. <td>2.</td>
  236. <td><strong>Personnel No:</strong></td>
  237. <td><?php echo $row_promotion['personnelno']; ?></td>
  238. </tr>
  239. <tr>
  240. <td>3.</td>
  241. <td><strong>Department:</strong></td>
  242. <td><?php echo $row_emploeeRec['department']; ?></td>
  243. </tr>
  244. <tr>
  245. <td>4.</td>
  246. <td><strong>Date and Place of Birth:</strong></td>
  247. <td><?php echo $row_emploeeRec['dateofbirth']; ?><?php echo $row_emploeeRec['placeofbirth']; ?></td>
  248. </tr>
  249. <tr>
  250. <td>5.</td>
  251. <td><strong>State of Origin;</strong></td>
  252. <td><?php echo $row_emploeeRec['state']; ?></td>
  253. </tr>
  254. <tr>
  255. <td>6.</td>
  256. <td><strong>Local Government of Origin:</strong></td>
  257. <td><?php echo $row_emploeeRec['lga']; ?></td>
  258. </tr>
  259. <tr>
  260. <td>7.</td>
  261. <td><strong>Nationality:</strong></td>
  262. <td><?php echo $row_emploeeRec['countryname']; ?></td>
  263. </tr>
  264. <tr>
  265. <td>8.</td>
  266. <td><strong>Marital Status:</strong></td>
  267. <td><?php echo $row_emploeeRec['maritalstatus']; ?></td>
  268. </tr>
  269. <tr>
  270. <td>9.</td>
  271. <td><strong>Gender:</strong></td>
  272. <td><?php echo $row_emploeeRec['gender']; ?></td>
  273. </tr>
  274. <tr>
  275. <td>10.</td>
  276. <td><strong>International Languages Spoken:</strong></td>
  277. <td>
  278. <?php if($totalRows_languages>0){
  279. do {
  280. echo $row_languages['language']. ", ";
  281. }while($row_languages = mysql_fetch_assoc($languages));
  282. }else{
  283. echo "Nil";
  284. }
  285. ?>
  286. </td>
  287. </tr>
  288. <tr>
  289. <td>11.</td>
  290. <td><strong>Current Contact Address:</strong></td>
  291. <td><?php
  292. if($totalRows_contactaddr>0){
  293. echo $row_contactaddr['contactaddress']."<br />";
  294. echo $row_contactaddr['city']."<br />";
  295. echo $row_contactaddr['statename']." State<br />";
  296. //echo $row_contactaddr['zip']."<br />";
  297. }
  298. ?></td>
  299. </tr>
  300. <tr>
  301. <td>12.</td>
  302. <td><strong>Permanent Home Address:</strong></td>
  303. <td>
  304. <?php if(isset($row_emploeeRec['permanentaddress']) && strlen(trim($row_emploeeRec['permanentaddress'])) !=0){
  305. echo $row_emploeeRec['permanentaddress'];
  306. }else{
  307. echo "<b>Not set</b>";
  308. }?>
  309. </td>
  310. </tr>
  311. <tr>
  312. <td>13.</td>
  313. <td><strong>Date of First Appointment with the University:</strong></td>
  314. <td><?php if(isset($row_emploeeRec['dateoffirstappointment'])){
  315. echo $row_emploeeRec['dateoffirstappointment'];
  316. }else{
  317. echo "Not set";
  318. }?></td>
  319. </tr>
  320. <td>14.</td>
  321. <td><strong>Date of Last Promotion:</strong></td>
  322. <td><?php if(isset($row_emploeeRec['effectivedate'])){
  323. echo $row_emploeeRec['effectivedate'];
  324. }else{
  325. echo "Not set";
  326. }?>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td>15.</td>
  331. <td><strong>Date of Confirmation:</strong></td>
  332. <td>
  333. <?php if(isset($row_confirmation['effectivedate'])){
  334. echo $row_confirmation['effectivedate'];
  335. }else{
  336. echo "Not set";
  337. }?>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td>16.</td>
  342. <td><strong>Present Rank and Salary:</strong></td>
  343. <td><?php
  344. if(isset($row_promotion['rank'])&& $row_promotion['rank']>0){
  345. $rankid= $row_promotion['rank'];
  346. $sql=mysql_query("select name from tblrank where rankid=$rankid");
  347. echo mysql_result($sql, 0, 'name');
  348. }
  349. ?></td>
  350. </tr>
  351. <tr>
  352. <td>17.</td>
  353. <td><strong>Qualifications, Educational Institutions with Dates:</strong></td>
  354. <td> <?php
  355. if($totalRows_qualifications<=0){ echo "Nil"; }?></td> </tr>
  356. <?php
  357. if($totalRows_qualifications>0){ ?>
  358. <tr><td>&nbsp;</td>
  359. <td colspan="2">
  360. <ol type="i">
  361. <?php do { ?>
  362. <li> <?php echo $row_qualifications['institutionobtained'].", ". $row_qualifications['certificate']. ", ".$row_qualifications['yearobtained']; ?>
  363. <?php }while($row_qualifications=mysql_fetch_assoc($qualifications)) ?>
  364. </ol>
  365. <?php } ?></td>
  366. </tr>
  367. <tr>
  368. <td>18.</td>
  369. <td><strong>Additional Qualifications/Education with Addresses & Dates</strong></td>
  370. <td> <?php
  371. if($totalRows__profQualification<=0){ echo "Nil"; }?></td> </tr>
  372. <?php
  373. if($totalRows__profQualification>0){ ?>
  374. <tr><td>&nbsp;</td>
  375. <td colspan="2">
  376. <ol type="i">
  377. <?php do { ?>
  378. <li> <?php echo $row__profQualification['institutionobtained'].", ". $row__profQualification['certificate']. ", ".$row__profQualification['institutionobtained']; ?>
  379. <?php }while($row__profQualification=mysql_fetch_assoc($profQualification)) ?>
  380. </ol>
  381. <?php } ?></td>
  382. </tr>
  383. </tr>
  384. <tr>
  385. <td>19.</td>
  386. <td><strong>Working Experience with Dates:</strong></td>
  387. <td> <?php
  388. if($totalRows_workexp<=0){ echo "Nil"; }?></td> </tr>
  389. <?php
  390. if($totalRows_workexp>0){ ?>
  391. <tr><td>&nbsp;</td>
  392. <td colspan="2">
  393. <ol type="i">
  394. <?php do { ?>
  395. <li> <?php echo $row_workexp['positionheld'].", ". $row_workexp['place']. ", From ".$row_workexp['from']. " To ". $row_workexp['to']. "<br />";
  396. echo "<b>Responsibilities:</b> ".$row_workexp['responsibilities']; ?></li>
  397. <?php }while($row_workexp=mysql_fetch_assoc($workexp)) ?>
  398. </ol>
  399. <?php } ?></td>
  400. </tr>
  401. <tr>
  402. <td>20.</td>
  403. <td><strong>Routine Teaching Experience with Dates:</strong></td>
  404. <td> <?php
  405. if($totalRows_teaching<=0){ echo "Nil"; }?></td> </tr>
  406. <?php
  407. if($totalRows_teaching>0){ ?>
  408. <tr><td>&nbsp;</td>
  409. <td colspan="2">
  410. <ol type="i">
  411. <?php do { ?>
  412. <li> <?php echo $row_teaching['coursecode']." - ". $row_teaching['title']." (". $row_teaching['session'].") ". $row_teaching['level']." Student type: ". $row_teaching['level'];?></li>
  413. <?php }while($row_teaching=mysql_fetch_assoc($teaching)) ?>
  414. </ol>
  415. <?php } ?>
  416. </td>
  417. </tr>
  418. <tr>
  419. <td>21.</td>
  420. <td><strong>Research/Extension Experience and Dates:</strong></td>
  421. <td><?php ?></td>
  422. </tr>
  423. <tr>
  424. <td>22.</td>
  425. <td><strong>Routine Administrative Duties with Dates:</strong></td>
  426. <td> <?php
  427. if($totalRows_adminduties<=0){ echo "Nil"; }?></td> </tr>
  428. <?php
  429. if($totalRows_adminduties>0){ ?>
  430. <tr><td>&nbsp;</td>
  431. <td colspan="2">
  432. <ol type="i">
  433. <?php do { ?>
  434. <li> <?php echo $totalRows_adminduties['dutyname'].", ". $totalRows_adminduties['institution']." (". $totalRows_adminduties['dutylevel']."), From ". $totalRows_adminduties['datefrom']." To ". $totalRows_adminduties['dateto'];?></li>
  435. <?php }while($totalRows_adminduties=mysql_fetch_assoc($adminduties)) ?>
  436. </ol>
  437. <?php } ?>
  438. </td>
  439. </tr>
  440. </tr>
  441. <tr>
  442. <td>23.</td>
  443. <td><strong>Positions Held with Dates:</strong></td>
  444. <td> <?php
  445. if($totalRows_positions<=0){ echo "Nil"; }?></td> </tr>
  446. <?php
  447. if($totalRows_positions>0){ ?>
  448. <tr><td>&nbsp;</td>
  449. <td colspan="2">
  450. <ol type="i">
  451. <?php do { ?>
  452. <li> <?php echo $row_positions['position'].", (". $row_positions['capacity']. "".$row_positions['place'].", From ".$row_positions['fromdate']. " To ". $row_positions['todate']. "<br />";?></li>
  453. <?php }while($row_positions=mysql_fetch_assoc($positions)) ?>
  454. </ol>
  455. <?php } ?>
  456. </td>
  457. </tr>
  458. <tr>
  459. <td>24.</td>
  460. <td><strong>Professional Service / Honour Societies:</strong></td>
  461. <td> <?php
  462. if($totalRows_profSoc<=0){ echo "Nil"; }?></td> </tr>
  463. <?php
  464. if($totalRows_profSoc>0){ ?>
  465. <tr><td>&nbsp;</td>
  466. <td colspan="2">
  467. <ol type="i">
  468. <?php do { ?>
  469. <li> <?php echo $row_profSoc['position'].", ". $row_profSoc['society'];?></li>
  470. <?php }while($row_profSoc=mysql_fetch_assoc($profSoc)) ?>
  471. </ol>
  472. <?php } ?>
  473. </td>
  474. </tr>
  475. <tr>
  476. <td>25.</td>
  477. <td><strong>Community Service:</strong></td>
  478. <td> <?php
  479. if($totalRows_commservice<=0){ echo "Nil"; }?></td> </tr>
  480. <?php
  481. if($totalRows_commservice>0){ ?>
  482. <tr><td>&nbsp;</td>
  483. <td colspan="2">
  484. <ol type="i">
  485. <?php do { ?>
  486. <li> <?php echo $row_commservice['description'].", (". $row_commservice['servicelevel']."), ".$row_commservice['beneficiary']." From ".$row_commservice['yearfrom']. " To ".$row_commservice['yearto'] ;?></li>
  487. <?php }while($row_commservice=mysql_fetch_assoc($commservice)) ?>
  488. </ol>
  489. <?php } ?>
  490. </td>
  491. </tr>
  492. <tr>
  493. <td>26.</td>
  494. <td><strong>International Conferences Attended:</strong></td>
  495. <td> <?php
  496. if($totalRows_internationalconf<=0){ echo "Nil"; }?></td> </tr>
  497. <?php
  498. if($totalRows_internationalconf>0){ ?>
  499. <tr><td>&nbsp;</td>
  500. <td colspan="2">
  501. <ol type="i">
  502. <?php do { ?>
  503. <li> <?php echo $row_internationalconf['role']." ". $row_internationalconf['conferencename']." by ".$row_internationalconf['organizers']." held from ".$row_internationalconf['datefrom']." to ".$row_internationalconf['dateto']. ". ".$row_internationalconf['url'] ;?></li>
  504. <?php }while($row_internationalconf=mysql_fetch_assoc($internationalconf)) ?>
  505. </ol>
  506. <?php } ?>
  507. </td>
  508. </tr>
  509. <tr>
  510. <td>27.</td>
  511. <td><strong>Local Conferences Attended/Organized with Dates:</strong></td>
  512. <td> <?php
  513. if($totalRows_localconferences<=0){ echo "Nil"; }?></td> </tr>
  514. <?php
  515. if($totalRows_localconferences>0){ ?>
  516. <tr><td>&nbsp;</td>
  517. <td colspan="2">
  518. <ol type="i">
  519. <?php do { ?>
  520. <li> <?php echo $row_localconferences['role']." ". $row_localconferences['conferencename']." by ".$row_localconferences['organizers']." held from ".$row_internationalconf['datefrom']." to ".$row_internationalconf['datefrom']. ". ".$row_localconferences['url'] ;?></li>
  521. <?php }while($row_localconferences=mysql_fetch_assoc($localconferences)) ?>
  522. </ol>
  523. <?php } ?>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td>28.</td>
  528. <td><strong>Publications/Articles:</strong></td>
  529. <td> <?php
  530. if($totalRows_publications<=0){ echo "Nil"; }?></td> </tr>
  531. <tr><td>&nbsp;</td>
  532. <?php if($totalRows_publications>0){ ?>
  533. <td colspan="2"> <strong> In peer-reviewed journals </strong>
  534. <ol type="i">
  535. <?php do { ?>
  536. <li> <?php echo $totalRows_publications['authors']." ". substr($totalRows_publications['title'], 0, 4)." ".$totalRows_publications['title'].". <i> ".$totalRows_publications['journalname']."</i> Vol. ".$totalRows_publications['vol']." No. ".$totalRows_publications['num'] ;?></li>
  537. <?php }while($totalRows_publications=mysql_fetch_assoc($publications)) ?>
  538. </ol>
  539. <?php } ?>
  540. </tr>
  541. <tr>
  542. <td>29.</td>
  543. <td><strong>Invention/Innovvation/Award:</strong></td>
  544. <td><?php ?></td>
  545. </tr>
  546. <tr>
  547. <td>30.</td>
  548. <td><strong>Citation in "Who-is-Who", etc:</strong></td>
  549. <td><?php ?></td>
  550. </tr>
  551. <tr>
  552. <td>31.</td>
  553. <td><strong>Additional Publications since Last Promotion:</strong></td>
  554. <td><?php ?></td>
  555. </tr>
  556. <tr>
  557. <td>32.</td>
  558. <td><strong>Hobbies:</strong></td>
  559. <td><?php ?></td>
  560. </tr>
  561. <tr>
  562. <td>33.</td>
  563. <td><strong>Names and Addresses of Three Referees:</strong></td>
  564. <td><?php ?></td>
  565. </tr>
  566. </table>
  567. <p align="center">&nbsp;</p>
  568. </div>
  569. </div>
  570. </body>
  571. </html>
  572. <?php
  573. }
  574. require_once('../../lib/database.php');
  575. openConnection();
  576. generatecv(5466,2011);
  577. ?>