trulyignitin

Template (new) add.php

Nov 9th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.98 KB | None | 0 0
  1. <?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
  2. <script language="JavaScript">
  3. <!--
  4. // Select Multiple js-function: hld()
  5. function hld(nid){ln=nid.parentNode;if(nid.checked){ln.style.backgroundColor='#0a246a';ln.style.color='#fff';}else{ln.style.backgroundColor='#fff';ln.style.color='#000';}}
  6.  
  7. var requpl = false;
  8.  
  9. function IsReqPhoto()
  10. {
  11. <?if (PHOTO_ALLOW) {?>
  12. requpl = true;
  13. <? if(C_PH_REQ_GEN != '0') {?>
  14. requpl = false;
  15. var gn = '<?=C_PH_REQ_GEN?>';
  16. gnr = gn.split(",");
  17. for (i = 0; i < gnr.length; i++) {
  18. if (document.form.gender.selectedIndex == gnr[i]) requpl = true;
  19. }
  20. <?}?><?}?><? for($i = 0; $i < $wpn[0]; $i++) { if((C_PHOTOR) && ($i < C_REQ_PHOTO_NUM)) {?>
  21. if(requpl) document.getElementById('PhotoReq_<?=$i?>').innerHTML = '<?=$w[0]?>';
  22. else document.getElementById('PhotoReq_<?=$i?>').innerHTML = '';
  23. <?}}?>
  24. }
  25.  
  26. function formCheck(form) {
  27. var cnt = form.elements.length;
  28. var flds = form.elements;
  29.  
  30. <?if (USERNAME_ALLOW) {?>
  31. if (form.username.value == "") {
  32. alert("<?=USERNAME_ERROR?>");
  33. return false;
  34. }
  35. <?}?>
  36. <?if (FIRSTNAME_ALLOW) {?>
  37. if (form.fname.value == "") {
  38. alert("<?=FIRSTNAME_ERROR?>");
  39. return false;
  40. }
  41. <?}?>
  42. <?if (LASTNAME_ALLOW) {?>
  43. if (form.lname.value == "") {
  44. alert("<?=LASTNAME_ERROR?>");
  45. return false;
  46. }
  47. <?}?>
  48. if (form.pass.value == "") {
  49. alert("<?=PASSWORD_ERROR_1?>");
  50. return false;
  51. }
  52. if (form.rpass.value == "") {
  53. alert("<?=PASSWORD_ERROR_2?>");
  54. return false;
  55. }
  56. if (form.pass.value != form.rpass.value) {
  57. alert("<?=PASSWORD_ERROR_3?>");
  58. return false;
  59. }
  60. <?if (BIRTHDAY_ALLOW) {?>
  61. if ( (form.month.selectedIndex == "") || (form.day.selectedIndex == "") || (form.year.selectedIndex == "")) {
  62. alert("<?=BIRTHDAY_ERROR?>");
  63. return false;
  64. }
  65. <?}?>
  66. <?if (GENDER_ALLOW) {?>
  67. if (form.gender.selectedIndex=="") {
  68. alert("<?=GENDER_ERROR?>");
  69. return false;
  70. }
  71. <?}?>
  72. <?if (BODYTYPE_ALLOW) {?>
  73. if (form.bodytype.selectedIndex=="") {
  74. alert("<?=BODYTYPE_ERROR?>");
  75. return false;
  76. }
  77. <?}?>
  78. <?if (ORIENTATION_ALLOW) {?>
  79. if (form.orientation.selectedIndex=="") {
  80. alert("<?=ORIENTATION_ERROR?>");
  81. return false;
  82. }
  83. <?}?>
  84. <?if (SGENDER_ALLOW) {?>
  85. var err = true;
  86. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,7) == "sgender" && flds[i].checked == 1) {err = false;break;}}
  87. if (err) {alert("<?=SGENDER_ERROR?>");return false;}
  88. <?}?>
  89. <?if (PURPOSE_ALLOW) {?>
  90. var err = true;
  91. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,7) == "purpose" && flds[i].checked == 1) {err = false;break;}}
  92. if (err) {alert("<?=PURPOSE_ERROR?>");return false;}
  93. <?}?>
  94.  
  95. <?if (ZIP_ALLOW) {?>
  96. if (form.zip.value=="") {
  97. alert("<?=ZIP_ERROR?>");
  98. return false;
  99. }
  100. <?}?>
  101. <?if (COUNTRY_ALLOW) {?>
  102. if (form.country.options[form.country.selectedIndex].value=="0") {
  103. alert("<?=COUNTRY_ERROR?>");
  104. return false;
  105. }
  106. <?}?>
  107. <?if (STATE_ALLOW) {?>
  108. if (form.state.value == "" && form.statelist.selectedIndex <= "0") {
  109. alert("<?=STATE_ERROR?>");
  110. return false;
  111. }
  112. <?}?>
  113. if (form.email.value == "") {
  114. alert("<?=EMAIL_ERROR?>");
  115. return false;
  116. }
  117. <?if (PHONE_ALLOW) {?>
  118. if (form.phone.value == "") {
  119. alert("<?=PHONE_ERROR?>");
  120. return false;
  121. }
  122. <?}?>
  123.  
  124. <?if (CITY_ALLOW) {?>
  125. if (form.city.value == "") {
  126. alert("<?=CITY_ERROR?>");
  127. return false;
  128. }
  129. <?}?>
  130.  
  131. <?if (ADDRESS_ALLOW) {?>
  132. if (form.address.value == "") {
  133. alert("<?=ADDRESS_ERROR?>");
  134. return false;
  135. }
  136. <?}?>
  137.  
  138. <?if (MARSTAT_ALLOW) {?>
  139. if (form.marstat.selectedIndex=="") {
  140. alert("<?=MARSTAT_ERROR?>");
  141. return false;
  142. }
  143. <?}?>
  144.  
  145. <?if (CHILD_ALLOW) {?>
  146. if (form.child.selectedIndex=="") {
  147. alert("<?=CHILD_ERROR?>");
  148. return false;
  149. }
  150. <?}?>
  151.  
  152. <?if (HEIGHT_ALLOW) {?>
  153. if (form.height.selectedIndex=="") {
  154. alert("<?=HEIGHT_ERROR?>");
  155. return false;
  156. }
  157. <?}?>
  158.  
  159. <?if (WEIGHT_ALLOW) {?>
  160. if (form.weight.selectedIndex=="") {
  161. alert("<?=WEIGHT_ERROR?>");
  162. return false;
  163. }
  164. <?}?>
  165.  
  166. <?if (HAIR_ALLOW) {?>
  167. if (form.hcolor.selectedIndex=="") {
  168. alert("<?=HAIR_ERROR?>");
  169. return false;
  170. }
  171. <?}?>
  172.  
  173. <?if (EYE_ALLOW) {?>
  174. if (form.ecolor.selectedIndex=="") {
  175. alert("<?=EYE_ERROR?>");
  176. return false;
  177. }
  178. <?}?>
  179.  
  180. <?if (ETHNICITY_ALLOW) {?>
  181. if (form.etnicity.selectedIndex=="") {
  182. alert("<?=ETHNICITY_ERROR?>");
  183. return false;
  184. }
  185. <?}?>
  186.  
  187. <?if (RELIGION_ALLOW) {?>
  188. if (form.religion.selectedIndex=="") {
  189. alert("<?=RELIGION_ERROR?>");
  190. return false;
  191. }
  192. <?}?>
  193.  
  194. <?if (SMOKE_ALLOW) {?>
  195. if (form.smoke.selectedIndex=="") {
  196. alert("<?=SMOKE_ERROR?>");
  197. return false;
  198. }
  199. <?}?>
  200.  
  201. <?if (DRINK_ALLOW) {?>
  202. if (form.drink.selectedIndex=="") {
  203. alert("<?=DRINK_ERROR?>");
  204. return false;
  205. }
  206. <?}?>
  207.  
  208. <?if (EDUCATION_ALLOW) {?>
  209. if (form.education.selectedIndex=="") {
  210. alert("<?=EDUCATION_ERROR?>");
  211. return false;
  212. }
  213. <?}?>
  214.  
  215. <?if (JOB_ALLOW) {?>
  216. if (form.job.value=="") {
  217. alert("<?=JOB_ERROR?>");
  218. return false;
  219. }
  220. <?}?>
  221.  
  222. <?if (LANG_ALLOW) {?>
  223. var err = true;
  224. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,4) == "lang" && flds[i].checked == 1) {err = false;break;}}
  225. if (err) {alert("<?=LANG_ERROR?>");return false;}
  226. <?}?>
  227.  
  228.  
  229. <?if (HOBBY_ALLOW) {?>
  230. if (form.hobby.value=="") {
  231. alert("<?=HOBBY_ERROR?>");
  232. return false;
  233. }
  234. <?}?>
  235.  
  236. <?if (INTERESTS_ALLOW) {?>
  237. var err = true;
  238. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,9) == "interests" && flds[i].checked == 1) {err = false;break;}}
  239. if (err) {alert("<?=INTERESTS_ERROR?>");return false;}
  240. <?}?>
  241.  
  242. <?if (DESCRIPTION_SHOW) {?>
  243. function trim(s)
  244. {
  245. return s.replace(/^\s+|\s+$/, '');
  246. }
  247. if (trim(form.descr.value)=="") {
  248. alert("<?=DESCRIPTION_ERROR?>");
  249. return false;
  250. }
  251. <?}?>
  252.  
  253. <?if (SCOUNTRY_ALLOW) {?>
  254. var err = true;
  255. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,8) == "scountry" && flds[i].checked == 1) {err = false;break;}}
  256. if (err) {alert("<?=SCOUNTRY_ERROR?>");return false;}
  257. <?}?>
  258. <?if (SMARSTAT_ALLOW) {?>
  259. var err = true;
  260. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,8) == "smarstat" && flds[i].checked == 1) {err = false;break;}}
  261. if (err) {alert("<?=SMARSTAT_ERROR?>");return false;}
  262. <?}?>
  263. <?if (SCHILD_ALLOW) {?>
  264. var err = true;
  265. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,6) == "schild" && flds[i].checked == 1) {err = false;break;}}
  266. if (err) {alert("<?=SCHILD_ERROR?>");return false;}
  267. <?}?>
  268. <?if (SHAIR_ALLOW) {?>
  269. var err = true;
  270. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,7) == "shcolor" && flds[i].checked == 1) {err = false;break;}}
  271. if (err) {alert("<?=SHAIR_ERROR?>");return false;}
  272. <?}?>
  273. <?if (SEYE_ALLOW) {?>
  274. var err = true;
  275. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,7) == "secolor" && flds[i].checked == 1) {err = false;break;}}
  276. if (err) {alert("<?=SEYE_ERROR?>");return false;}
  277. <?}?>
  278. <?if (SSMOKE_ALLOW) {?>
  279. var err = true;
  280. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,6) == "ssmoke" && flds[i].checked == 1) {err = false;break;}}
  281. if (err) {alert("<?=SSMOKE_ERROR?>");return false;}
  282. <?}?>
  283. <?if (SDRINK_ALLOW) {?>
  284. var err = true;
  285. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,6) == "sdrink" && flds[i].checked == 1) {err = false;break;}}
  286. if (err) {alert("<?=SDRINK_ERROR?>");return false;}
  287. <?}?>
  288. <?if (SEDUCATION_ALLOW) {?>
  289. var err = true;
  290. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,10) == "seducation" && flds[i].checked == 1) {err = false;break;}}
  291. if (err) {alert("<?=SEDUCATION_ERROR?>");return false;}
  292. <?}?>
  293.  
  294. <?if (SETHNICITY_ALLOW) {?>
  295. var err = true;
  296. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,9) == "setnicity" && flds[i].checked == 1) {err = false;break;}}
  297. if (err) {alert("<?=SETHNICITY_ERROR?>");return false;}
  298. <?}?>
  299.  
  300. <?if (SRELIGION_ALLOW) {?>
  301. var err = true;
  302. for (i=0; i < cnt; i++) { if(flds[i].name.substring(0,9) == "sreligion" && flds[i].checked == 1) {err = false;break;}}
  303. if (err) {alert("<?=SRELIGION_ERROR?>");return false;}
  304. <?}?>
  305. <?if (HDYFU_ALLOW) {?>
  306. if (form.hdyfu.selectedIndex=="") {
  307. alert("<?=HDYFU_ERROR?>");
  308. return false;
  309. }
  310. <?}?>
  311. <?if (PHOTO_ALLOW) {?>
  312. if ((form.file0.value == "") && (form.file1.value == "") && (form.file2.value == "")) {
  313. requpl = true;
  314. <? if(C_PH_REQ_GEN != '0') {?>
  315. requpl = false;
  316. var gnd = '<?=C_PH_REQ_GEN?>';
  317. gndr = gnd.split(",");
  318. for (ind = 0; ind < gndr.length; ind++) {
  319. if (form.gender.selectedIndex == gndr[ind]) {requpl = true;}
  320. }
  321. <?}?>
  322. if(requpl) {
  323. alert("<?=PHOTO_ERROR?>");
  324. return false;
  325. }
  326. }
  327. <?}?>
  328. <?if (VERIFY_ALLOW) {?>
  329. if (form.verifyimage.value == "") {
  330. alert("<?=VERIFY_ERROR?>");
  331. return false;
  332. }
  333. <?}?>
  334. <?if (REG_TERMS_ALLOW) {?>
  335. if (form.reg_terms.checked == 0) {
  336. alert("<?=REG_TERMS_ERROR?>");
  337. return false;
  338. }
  339. <?}?>
  340. if (document.form.submit.action != "") {
  341. document.form.submit.disabled=1;}
  342. }
  343.  
  344. function CheckUncheckAll(itemname) {
  345. with(document.form) {
  346. for(i=0;i<elements.length;i++) {
  347. thiselm = elements[i];
  348. if(thiselm.name == itemname) thiselm.checked = !thiselm.checked
  349. }
  350. }
  351. }
  352.  
  353. function ins(prop,type)
  354. {
  355. var input = document.form.descr;var mysel;var text;
  356. if (window.getSelection) mysel = window.getSelection();
  357. else if (document.selection) mysel = document.selection.createRange().text;
  358. else if (document.getSelection) mysel = document.getSelection();
  359. b = (type == 0) ? '['+prop+']' : prop;
  360. e = (type == 0) ? '[/'+prop+']' : '';
  361. if (input.createTextRange)
  362. {
  363. var text;
  364. input.focus(input.caretPos);
  365. input.caretPos = document.selection.createRange().duplicate();
  366. input.caretPos.text = (input.caretPos.text.length>0) ? b + input.caretPos.text + e : b + mysel + e;
  367. }
  368. else input.value += b + mysel + e;
  369. }
  370. // -->
  371. </script>
  372. <script language="JavaScript" src="<?=C_URL?>/classes/Ajax.js"></script>
  373. <script>
  374. function SR(force) {
  375. var username = '' + document.getElementById('username').value;
  376. var req = new Ajax();
  377. req.onreadystatechange = function() {
  378. if (req.readyState == 4) {
  379. if (req.resp) {
  380. document.getElementById('UsernameValue').innerHTML = req.resp.username;
  381. }
  382. }
  383. }
  384. req.caching = true;
  385. req.open('POST', '<?=C_URL?>/dl.php?l=<?=LANGUAGE?>', true);
  386. req.send({ check:'1',username: username});
  387. }
  388.  
  389. </script>
  390. <script>
  391. $(document).ready(function() {
  392. $('select').material_select();
  393. });
  394. $(document).ready(function() {
  395. $('input#input_text, textarea#textarea1').characterCounter();
  396. });
  397. </script>
  398. <script language="JavaScript">
  399. var ids=new Array('state','statelist');
  400. function switchid(id){hideallids(); showdiv(id);}
  401. function hideallids(){for (var i=0;i<ids.length;i++){hidediv(ids[i]);}}
  402. function hidediv(id) {if (document.getElementById) {document.getElementById(id).style.display = 'none';}
  403. else {if (document.layers) {document.id.display = 'none';}
  404. else {document.all.id.style.display = 'none';}}}
  405. function showdiv(id) {
  406. if (document.getElementById) {document.getElementById(id).style.display = 'block';}
  407. else {if (document.layers) {document.id.display = 'block';}
  408. else {document.all.id.style.display = 'block';}}}
  409. var rc= new Array(500);
  410. <?=STATELIST_VALUE?>
  411. function GetIndex(index){var sc = rc[index];return sc.split(","); }
  412. function ShowRegion(index){
  413. if(<?=STATELIST_CHECK?>) {
  414. switchid('statelist');
  415. document.forms["form"].elements["state"].value = '';
  416. var ind = GetIndex(index);var cur = '<?=STATELIST_CUR?>';var cnt = ind.length;var lst = document.forms["form"].elements["statelist"];var lstOptionsCnt = lst.options.length;lst.length = 0;
  417. lst.options[0] = new Option('--------', '', false, false);
  418. for (i = 1; i < cnt; i++){
  419. lst.options[i] = (cur == ind[i]) ? new Option(ind[i], ind[i], true, false) : new Option(ind[i], ind[i], false, false);
  420. }
  421. } else {
  422. switchid('state');
  423. for (var i = 0; i < document.forms["form"].elements["statelist"].length; i++) {document.forms["form"].elements["statelist"].selected = false;}
  424. document.forms["form"].elements["statelist"].value = '';
  425. }
  426. }
  427. ShowRegion(document.forms["form"].elements["country"].options[document.forms["form"].elements["country"].options.selectedIndex].value);
  428. // -->
  429. </script>
  430. <style>
  431. /* label color */
  432. .input-field label {
  433. color: #000;
  434. }
  435. /* label focus color */
  436. .input-field input[type=text]:focus + label {
  437. color: #000;
  438. }
  439. /* label underline focus color */
  440. .input-field input[type=text]:focus {
  441. border-bottom: 1px solid #000;
  442. box-shadow: 0 1px 0 0 #000;
  443. }
  444. /* valid color */
  445. .input-field input[type=text].valid {
  446. border-bottom: 1px solid #000;
  447. box-shadow: 0 1px 0 0 #000;
  448. }
  449. /* invalid color */
  450. .input-field input[type=text].invalid {
  451. border-bottom: 1px solid #000;
  452. box-shadow: 0 1px 0 0 #000;
  453. }
  454. /* icon prefix focus color */
  455. .input-field .prefix.active {
  456. color: #000;
  457. }
  458. </style>
  459. <div class="container">
  460. <form class="col s12" action="<?=filename()?>" method="post" enctype="multipart/form-data" name=form OnSubmit="return formCheck(this)">
  461. <input type="hidden" name="l" value="<?=LANGUAGE?>">
  462. <input type="hidden" name="a" value="a">
  463. <span class=head>User Registration</span>
  464. <fieldset>
  465. <legend><b>Account Information:</b></legend>
  466.  
  467. <div class="input-field col s6">
  468. <?if(USERNAME_ALLOW) {?>
  469. <i class="material-icons prefix">perm_identity</i>
  470. <label for="<?=USERNAME?>">Username</label>
  471. <?}?>
  472. <input class=input type="text" id="username" name="username" length="16" value="<?=USERNAME_VALUE?>" OnChange="SR(true)"><br><span id="UsernameValue" style="color:red"></span>
  473. </div>
  474.  
  475. <div class="input-field col s6">
  476. <i class="material-icons prefix">email</i>
  477. <label for="<?=EMAIL?>" data-error="wrong" data-success="right">Email</label>
  478. <input class=input type="text" id="email" name="email" value="<?=EMAIL_VALUE?>">
  479. </div>
  480.  
  481. <div class="input-field col s6">
  482. <i class="material-icons prefix">vpn_key</i>
  483. <label for="<?=PASSWORD?>">Password</label>
  484. <input class="input" type="password" name="pass" maxlength="<?=C_PASSB?>" value="<?=PASSWORD_VALUE?>">
  485. </div>
  486.  
  487. <div class="input-field col s6">
  488. <i class="material-icons prefix">vpn_key</i>
  489. <label for="<?=RETYPE_PASSWORD?>">Retype Password</label>
  490. <input class="input" type="password" name="rpass" maxlength="<?=C_PASSB?>" value="<?=RETYPE_PASSWORD_VALUE?>">
  491. </div>
  492.  
  493. <div class="input-field col s12">
  494. <?if(AGREEMENT){?>
  495. <label for="<?=AGREEMENT?>">Terms Of Use Agreement</label>
  496. <?}?>
  497. <textarea cols="60" rows="10" class=binput>
  498. <?include_once C_PATH.'/languages/'.LANGUAGE.'/agr.php';?>
  499. </textarea>
  500. </div>
  501.  
  502. <div class="input-field col s12">
  503. <?if(REG_TERMS_SHOW) {?>
  504. <label for="<?=REG_TERMS?>"></label>
  505. <?}?>
  506. <input type=checkbox name=reg_terms value="<?=REG_TERMS_VALUE?>">
  507. </div>
  508.  
  509. <div class="input-field col s12">
  510. <?if(REG_TERMS_SHOW) {?>
  511. <label for="<?=REG_TERMS?>"></label>
  512. <?}?>
  513. <input type=checkbox name=reg_terms value="<?=REG_TERMS_VALUE?>">
  514. </div>
  515.  
  516. <?if(WANTPRIV_SHOW) {?>
  517. <?}?>
  518. <input type="checkbox" id="test5" name=wantpriv value="<?=WANTPRIV_VALUE?>" />
  519. <label for="test5">I agree with the Terms of Use Agreement</label>
  520. </p>
  521. </fieldset>
  522. <br>
  523. <br>
  524. <fieldset>
  525. <legend><b>Personal Information:</b></legend>
  526. <p>
  527. <div class="input-field col s6">
  528. <?if(FIRSTNAME_SHOW) {?><?}?>
  529. <i class="material-icons prefix">assignment_ind</i>
  530. <label for="<?=FIRSTNAME?>">First Name</label>
  531. <input class=input type=text name=fname maxlength="<?=C_FIRSTNB?>" value="<?=FIRSTNAME_VALUE?>">
  532. </p>
  533. </div>
  534.  
  535. <div class="input-field col s6">
  536. <?if(LASTNAME_SHOW) {?><?}?>
  537. <i class="material-icons prefix">assignment_ind</i>
  538. <label for="<?=LASTNAME?>">Last Name</label>
  539. <input class=input type=text name=lname maxlength="<?=C_FIRSTNB?>" value="<?=LASTNAME_VALUE?>">
  540. </div>
  541. </fieldset>
  542. <br>
  543.  
  544. <fieldset>
  545. <legend><b>Birtdate:</b></legend>
  546. <div class="input-field col s4">
  547. <i class="material-icons prefix">cake</i>
  548. <select name="month" class="minput"><?=MONTH_VALUE?></select>
  549. <label>Birthdate Month</label>
  550. </div>
  551.  
  552. <div class="input-field col s4">
  553. <i class="material-icons prefix">cake</i>
  554. <select name="day" class="sinput"><?=DAY_VALUE?></select>
  555. <label>Birthdate Day</label>
  556. </div>
  557.  
  558. <div class="input-field col s4">
  559. <i class="material-icons prefix">cake</i>
  560. <select name="year" class="sinput"><?=YEAR_VALUE?></select>
  561. <label>Birthdate Year</label>
  562. </div>
  563. </fieldset>
  564. </br>
  565.  
  566. <fieldset>
  567. <legend><b>About You:</b></legend>
  568. <div class="input-field col s6">
  569. <?if(ORIENTATION_SHOW) {?><?}?>
  570. <i class="material-icons prefix">assignment_ind</i>
  571. <select name="orientation" class="input">
  572. <option value=0> Choose Orientation
  573. <?=ORIENTATION_VALUE?>
  574. </select>
  575. </div>
  576.  
  577. <div class="input-field col s6">
  578. <?if(BODYTYPE_SHOW) {?><?}?>
  579. <i class="material-icons prefix">assignment_ind</i>
  580. <select name="bodytype" class="input">
  581. <option value=0>Choose Body Type
  582. <?=BODYTYPE_VALUE?>"
  583. </select>
  584. </div>
  585.  
  586. </fieldset>
  587. <br>
  588. <fieldset>
  589. <legend><b>Who Do you Seek For:</b></legend>
  590.  
  591. </fieldset>
  592. <br>
  593. <fieldset>
  594. <legend><b>Description:</b></legend>
  595. <div class="input-field col s6">
  596. <?if(DESCRIPTION_SHOW) {?><?}?>
  597. <i class="material-icons prefix"></i>
  598. <label for="<?=DESCRIPTION?>"></label>
  599. <?if(USE_SMILES || USE_BB){?><?}?>
  600. <?if(USE_SMILES){?><?$p=0;foreach ($smiles as $k=>$v){$p++;?><a href="javascript:ins(' <?=$k?> ',1)"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/forum/smiles/<?=$v?>" border=0 /></a>
  601. <?if(C_SMILES_NUMBER <= $p){?><br><a href="javascript:open_win('<?=C_URL?>/forum/smiles_show.php','_blank')"><?=$w[720]?></a><br><?break;}?><?}?><?}?>
  602. <?if(USE_BB && USE_SMILES){?><br><br><?}?>
  603. <?if(USE_BOLD){?><a href="javascript:ins('B',0)"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Bold.gif" border=0 /></a><?}?>
  604. <?if(USE_ITALIC){?><a href="javascript:ins('I',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Italic.gif" border=0 /></a><?}?>
  605. <?if(USE_UNDERLINE){?><a href="javascript:ins('U',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Underline.gif" border=0 /></a><?}?>
  606. <?if(USE_STRIKE){?><a href="javascript:ins('S',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Strike.gif" border=0 /></a><?}?>
  607. <?if(USE_MARQUEE){?><a href="javascript:ins('MARQUEE',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/marquee.png" border=0 /></a><?}?>
  608. <?if(USE_QUOTE){?><a href="javascript:ins('QUOTE',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Quote.gif" border=0 /></a><?}?>
  609. <?if(USE_URL){?><a href="javascript:ins('URL',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/URL.gif" border=0 /></a><?}?>
  610. <?if(USE_IMG){?><a href="javascript:ins('IMG',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Image.gif" border=0 /></a><?}?>
  611. <?if(USE_VIDEO){?><a href="javascript:ins('VIDEO',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Video.gif" border=0 /></a><?}?>
  612. <textarea class=input cols=14 rows=8 name=descr><?=DESCRIPTION_VALUE?></textarea>
  613. </div>
  614. </fieldset>
  615. <br>
  616. <fieldset>
  617. <legend><b>The Muggs:</b></legend>
  618. <?if(PHOTO_SHOW) {?><?}?>
  619. <div class="file-field input-field">
  620. <div class="btn">
  621. <span>Photo</span>
  622. <input type="file">
  623. </div>
  624. <div class="file-path-wrapper">
  625. <input class="file-path validate" type="text" name="file<?=$p?>">
  626. </fieldset>
  627. <br>
  628.  
  629. <button class="btn waves-effect waves-light" type="submit" name="action">Submit
  630. <i class="material-icons right">send</i>
  631. </button>
  632. </div>
  633. </div>
  634. </form>
  635. <script>IsReqPhoto();</script>
  636. </div>
  637. </fieldset>
Add Comment
Please, Sign In to add comment