PageRenderTime 27ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/import/MassImportStep1.tpl

https://bitbucket.org/jstechnologies/cats
Smarty Template | 173 lines | 155 code | 18 blank | 0 comment | 19 complexity | cedfe56a37531b52130507cbf684447f MD5 | raw file
  1. <div class="stepContainer">
  2. <?php if (isset($this->documents)): ?>
  3. <div id="uploadQueue" style="background-color: #f0f0f0; color: #800000; border: 1px solid #800000; text-align: center; font-size: 14px; padding: 10px; margin: 0 0 15px 0; font-weight: bold;">
  4. You have <?php echo number_format(count($this->documents), 0); ?> document<?php echo count($this->documents) != 1 ? 's' : ''; ?> in your upload queue.
  5. <br /><br />
  6. <input type="button" value="Delete File<?php echo count($this->documents) != 1 ? 's' : ''; ?>" onclick="deleteUploadFiles();" class="button" />
  7. <input type="button" class="button" value="Import File<?php echo count($this->documents) != 1 ? 's' : ''; ?>" onclick="document.location.href='<?php echo CATSUtility::getIndexName(); ?>?m=import&a=massImport&step=2';" />
  8. </div>
  9. <?php endif; ?>
  10. <?php if ($this->isDemo): ?>
  11. <img src="modules/asp/website/images/demoImport.jpg" border="0" />
  12. <?php elseif ($this->flashUploaderEnabled): ?>
  13. <table cellpadding="0" cellspacing="0" border="0" width="100%">
  14. <tr>
  15. <td align="left" valign="top" width="50%">
  16. <img src="images/massImport.jpg" border="0" />
  17. <p />
  18. <b>Supported File Types</b>:
  19. <table cellpadding="2" cellspacing="0" border="0" style="padding-left: 80px;">
  20. <tr><td><img src="images/fileTypeDoc.jpg" border="0" /> Microsoft Word Documents (.doc)</td></tr>
  21. <tr><td><img src="images/fileTypePdf.jpg" border="0" /> Adobe Portable Document Format (.pdf)</td></tr>
  22. <tr><td><img src="images/fileTypeRtf.jpg" border="0" /> Rich Text Format (.rtf)</td></tr>
  23. <tr><td><img src="images/fileTypeHtml.jpg" border="0" /> HTML Web Pages (.html)</td></tr>
  24. <tr><td><img src="images/fileTypeTxt.jpg" border="0" /> Plain Text Files (.txt)</td></tr>
  25. </table>
  26. <br />
  27. <b>Supported File Archives</b>:
  28. <table cellpadding="2" cellspacing="0" border="0" style="padding-left: 80px; padding-top: 10px;">
  29. <tr><td><img src="images/fileTypeZip.jpg" border="0" /> Zip Archives (.zip)</td></tr>
  30. <tr><td><img src="images/fileTypeGz.jpg" border="0" /> GNU Zip Archives (.gz)</td></tr>
  31. </table>
  32. </td>
  33. <td align="left valign="top" width="50%">
  34. <object id="FlashFilesUpload" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
  35. width="450" height="350" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
  36. <!-- Replace symbols " with the &quot; at all parameters values and
  37. symbols "&" with the "%26" at URL values or &amp; at other values!
  38. The same parameters values should be set for EMBED object below. -->
  39. <param name="FlashVars" VALUE="uploadUrl=<?php echo(CATSUtility::getNonSSLDirectoryURL()); ?>modules/asp/lib/MultiPowUpload/upload.php?session_id=<?php echo(session_id()); ?>&amp;showLink=false&amp;labelUploadText=%20&amp;backgroundColor=#FFFFFF">
  40. <param name="BGColor" VALUE="#FFFFFF">
  41. <param name="Movie" VALUE="<?php echo(CATSUtility::getNonSSLDirectoryURL()); ?>modules/asp/lib/MultiPowUpload/ElementITMultiPowUpload1.7.swf">
  42. <param name="Src" VALUE="<?php echo(CATSUtility::getNonSSLDirectoryURL()); ?>modules/asp/lib/MultiPowUpload/ElementITMultiPowUpload1.7.swf">
  43. <param name="WMode" VALUE="Window">
  44. <param name="Play" VALUE="-1">
  45. <param name="Loop" VALUE="-1">
  46. <param name="Quality" VALUE="High">
  47. <param name="SAlign" VALUE="">
  48. <param name="Menu" VALUE="-1">
  49. <param name="Base" VALUE="">
  50. <param name="AllowScriptAccess" VALUE="always">
  51. <param name="Scale" VALUE="ShowAll">
  52. <param name="DeviceFont" VALUE="0">
  53. <param name="EmbedMovie" VALUE="0">
  54. <param name="SWRemote" VALUE="">
  55. <param name="MovieData" VALUE="">
  56. <param name="SeamlessTabbing" VALUE="1">
  57. <param name="Profile" VALUE="0">
  58. <param name="ProfileAddress" VALUE="">
  59. <param name="ProfilePort" VALUE="0">
  60. <!-- Embed for Netscape,Mozilla/FireFox browsers support. Flashvars parameters are the same.-->
  61. <!-- Replace symbols " with the &quot; at all parameters values and
  62. symbols "&" with the "%26" at URL values or &amp; at other values! -->
  63. <embed bgcolor="#FFFFFF" id="EmbedFlashFilesUpload" src="<?php echo(CATSUtility::getNonSSLDirectoryURL()); ?>modules/asp/lib/MultiPowUpload/ElementITMultiPowUpload1.7.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="450" height="350"
  64. flashvars="uploadUrl=<?php echo(CATSUtility::getNonSSLDirectoryURL()); ?>modules/asp/lib/MultiPowUpload/upload.php?session_id=<?php echo(session_id()); ?>&amp;showLink=false&amp;labelUploadText=%20&amp;backgroundColor=#FFFFFF">
  65. </embed>
  66. </object>
  67. </td>
  68. </tr>
  69. </table>
  70. <div style="text-align: right;">
  71. <input type="button" class="button" value="Continue ->" onclick="document.location.href='<?php echo CATSUtility::getIndexName(); ?>?m=import&a=massImport&step=2';" />
  72. </div>
  73. <?php elseif ($this->multipleFilesEnabled): ?>
  74. <span style="font-size: 16px;">
  75. <?php if ($this->uploadPath !== false): ?>
  76. To import multiple files, move or copy your resume documents to the following directory on the computer
  77. that hosts CATS:
  78. <br /><br />
  79. <b><?php echo $this->uploadPath; ?></b>
  80. <br /><br />
  81. Once you have resumes in this folder, <a href="<?php echo CATSUtility::getIndexName(); ?>?m=import&a=importSelectType&typeOfImport=resume">
  82. reload</a> this page to start the import process.
  83. <br /><br />
  84. <?php if (LicenseUtility::isProfessional()): ?>
  85. If you need any assistance, please contact the CATS support team.</br >
  86. <?php else: ?>
  87. If you need assistance in uploading files to your web server, contact your system administrator.<br />
  88. <?php endif; ?>
  89. <?php else: ?>
  90. In order to import resume documents into CATS, you need to create a directory named "<b>upload</b>" on the computer
  91. that hosts cats. This directory needs to have its permissions set to allow files to be created by your
  92. web server.
  93. <br /><br />
  94. <b>Linux Instructions:</b>
  95. <br />
  96. <blockquote>
  97. <span style="color: #c0c0c0;">&gt;</span> mkdir /PATH/TO/CATS/upload<br />
  98. <span style="color: #c0c0c0;">&gt;</span> chmod -R 777 /PATH/TO/CATS/upload
  99. </blockquote>
  100. <br />
  101. <b>Windows Instructions:</b>
  102. <blockquote>
  103. <span style="color: #c0c0c0;">&gt;</span> Create a folder named <b>upload</b> in the directory you installed CATS.<br />
  104. <span style="color: #c0c0c0;">&gt;</span> Set the appropriate permissions by right clicking the file and selecting <b>Properties</b>, then <b>Security</b>.<br />
  105. <span style="color: #c0c0c0;">&gt;</span> Make sure all users have access to read, write and delete files and directories.
  106. </blockquote>
  107. <?php endif; ?>
  108. </span>
  109. <?php else: ?>
  110. The automated bulk resume import feature has been temporarily disabled.<br /><br />
  111. To import resumes into the bulk resume pool, please contact <a href="mailto:support@catsone.com">support@catsone.com</a>
  112. for assistance from the CATS team.
  113. <br />
  114. <?php endif; ?>
  115. <?php if (LicenseUtility::isParsingEnabled()): ?>
  116. <div style="padding: 10px; margin-top: 15px; text-align: left;">
  117. <table cellpadding="0" cellspacing="0" border="0">
  118. <tr>
  119. <td align="left" valign="top" style="padding-right: 20px;">
  120. <a href="http://www.resfly.com" target="_blank">
  121. <img src="images/poweredByResfly.jpg" border="0" style="border: 1px solid #c0c0c0;" />
  122. </a>
  123. </td>
  124. <td align="left" valign="top">
  125. <span style="font-size: 16px;">
  126. <?php if (LicenseUtility::isProfessional()): ?>
  127. You are a registered CATS Professional user <b><?php echo LicenseUtility::getName(); ?></b>.
  128. <?php elseif (LicenseUtility::isOpenSource()): ?>
  129. <b>You are a registered open source user of CATS.</b>
  130. <?php endif; ?>
  131. </span>
  132. <p />
  133. <?php if (file_exists('modules/asp') || (is_array($status = LicenseUtility::getParsingStatus()) && $status['parseLimit'] == -1)): ?>
  134. <span style="font-size: 14px; color: #333333;">
  135. You have unlimited use of the Resfly parsing service, which searches your resume files for contact
  136. and resume information. CATS will import all applicable resume documents as candidates.
  137. </span>
  138. <?php else: ?>
  139. <span style="font-size: 14px; color: #333333;">
  140. Your resume documents will be imported as searchable documents but <b>not</b> as candidates unless
  141. you manually complete the required fields for each document (first and last names).
  142. <br /><br />
  143. With the
  144. Resfly parsing service, much of the candidate's information can be imported automatically.
  145. <br />
  146. Consider <a href="http://www.catsone.com/?a=getcats" style="font-size: 14px;" target="_blank">upgrading to CATS Professional</a>
  147. for unlimited use of this service.
  148. </span>
  149. <?php endif; ?>
  150. </td>
  151. </tr>
  152. </table>
  153. </div>
  154. <?php endif; ?>
  155. </div>