Public paste
sample-form
By: Partials | Date: Nov 24 2009 17:28 | Format: PHP | Expires: never | Size: 20.22 KB | Hits: 1118

  1. <form method="post" accept-charset="ISO-8859-1">
  2. <?php
  3.  
  4. $outercellcontroller = '
  5.  <tr>
  6.    <td width="500"></td>
  7.    <td width="10"></td>
  8.    <td width="auto"></td>
  9.  </tr>
  10. ';
  11. $innercellcontroller = '
  12.  <tr>
  13.    <td width="190"></td>
  14.    <td width="10"></td>
  15.    <td width="auto"></td>
  16.  </tr>
  17. ';
  18.  
  19. $locations = $this->config['locations'];
  20. $findus = $this->config['findus'];
  21.  
  22. $innertables =
  23.         $this->partial('tables/innertable.php',
  24.                 array('config' => array('content' => '
  25.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  26.                         .$outercellcontroller
  27.                         .'<td valign="top">
  28.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  29.                             .$innercellcontroller
  30.                             .$this->partial('forms/tr/label_null_input.php',
  31.                                         array('config' => array('id' => 'author_name',
  32.                                                                 'name' => 'author_name',
  33.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_name'],
  34.                                                                 'value' => $CORE->input['author_name'],
  35.                                                                 'required' => true,
  36.                                                                 'maxlength' => 22
  37.                              )))
  38.                           .'</table>
  39.                           </td>'
  40.                         .'
  41.                           <td></td>
  42.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_name_description'].'</td>
  43.                         </table>'
  44.         ))).
  45.         $this->partial('tables/innertable.php',
  46.                 array('config' => array('content' => '
  47.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  48.                         .$outercellcontroller
  49.                         .'<td valign="top">
  50.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  51.                             .$innercellcontroller
  52.                             .$this->partial('forms/tr/label_null_input.php',
  53.                                         array('config' => array('id' => 'author_real_first_name',
  54.                                                                 'name' => 'author_real_first_name',
  55.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_real_first_name'],
  56.                                                                 'value' => $CORE->input['author_real_first_name'],
  57.                                                                 'maxlength' => 22
  58.                             )))
  59.                             .$this->partial('forms/tr/label_null_input.php',
  60.                                         array('config' => array('id' => 'author_real_middle_name',
  61.                                                                 'name' => 'author_real_middle_name',
  62.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_real_middle_name'],
  63.                                                                 'value' => $CORE->input['author_real_middle_name'],
  64.                                                                 'maxlength' => 22
  65.                             )))
  66.                             .$this->partial('forms/tr/label_null_input.php',
  67.                                         array('config' => array('id' => 'author_real_last_name',
  68.                                                                 'name' => 'author_real_last_name',
  69.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_real_last_name'],
  70.                                                                 'value' => $CORE->input['author_real_last_name'],
  71.                                                                 'maxlength' => 22
  72.                             )))
  73.                           .'</table>
  74.                           </td>'
  75.                         .'
  76.                           <td></td>
  77.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_realname_description'].'</td>
  78.                         </table>'
  79.         ))).
  80.         $this->partial('tables/innertable.php',
  81.                 array('config' => array('content' => '
  82.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  83.                         .$outercellcontroller
  84.                         .'<td valign="top">
  85.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  86.                             .$innercellcontroller
  87.                             .$this->partial('forms/tr/label_null_null.php',
  88.                                         array('config' => array('content' => '<table width="100%" cellpadding="0" cellspacing="0" summary="">
  89.                                                                                 <tr>
  90.                                                                                   <td width="95" valign="top" align="right">
  91.                                                                                     <table width="100%" cellpadding="0" cellspacing="0" summary="">
  92.                                                                                       <tr>
  93.                                                                                         <td width="60"></td>
  94.                                                                                         <td width="0"></td>
  95.                                                                                         <td width="35"></td>
  96.                                                                                       </tr>'.
  97.                                                                                         $this->partial('forms/tr/label_null_input.php',
  98.                                                                                           array('config' => array('label' => $LANGUAGE->cache['global_text_contactform_birthday_day'],
  99.                                                                                                                   'maxlength' => 2,
  100.                                                                                                                   'name' => 'author_birthday_day',
  101.                                                                                                                   'id' => 'author_birthday_day',
  102.                                                                                                                   'value' => $CORE->input['author_birthday_day'],
  103.                                                                                                                   'style' => 'text-align: center;'
  104.                                                                                                                   )))
  105.                                                                                       .'
  106.                                                                                     </table>
  107.                                                                                   </td>
  108.                                                                                   <td width="95" valign="top" align="right">
  109.                                                                                     <table width="100%" cellpadding="0" cellspacing="0" summary="">
  110.                                                                                       <tr>
  111.                                                                                         <td width="60"></td>
  112.                                                                                         <td width="0"></td>
  113.                                                                                         <td width="35"></td>
  114.                                                                                       </tr>'.
  115.                                                                                         $this->partial('forms/tr/label_null_input.php',
  116.                                                                                           array('config' => array('label' => $LANGUAGE->cache['global_text_contactform_birthday_month'],
  117.                                                                                                                   'maxlength' => 2,
  118.                                                                                                                   'name' => 'author_birthday_month',
  119.                                                                                                                   'id' => 'author_birthday_month',
  120.                                                                                                                   'value' => $CORE->input['author_birthday_month'],
  121.                                                                                                                   'style' => 'text-align: center;'
  122.                                                                                                                   )))
  123.                                                                                       .'
  124.                                                                                     </table>
  125.                                                                                   </td>
  126.                                                                                   <td width="110" valign="top" align="right">
  127.                                                                                     <table width="100%" cellpadding="0" cellspacing="0" summary="">
  128.                                                                                       <tr>
  129.                                                                                         <td width="60"></td>
  130.                                                                                         <td width="0"></td>
  131.                                                                                         <td width="50"></td>
  132.                                                                                       </tr>'.                                                                                
  133.                                                                                         $this->partial('forms/tr/label_null_input.php',
  134.                                                                                           array('config' => array('label' => $LANGUAGE->cache['global_text_contactform_birthday_year'],
  135.                                                                                                                   'maxlength' => 4,
  136.                                                                                                                   'name' => 'author_birthday_year',
  137.                                                                                                                   'id' => 'author_birthday_year',
  138.                                                                                                                   'value' => $CORE->input['author_birthday_year'],
  139.                                                                                                                   'style' => 'text-align: center;'
  140.                                                                                                                   )))
  141.                                                                                       .'
  142.                                                                                     </table>
  143.                                                                                   </td>
  144.                                                                                 </tr>
  145.                                                                               </table>'
  146.                                                                 ,
  147.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_birthday']
  148.                              )))
  149.                           .'</table>
  150.                           </td>'
  151.                         .'
  152.                           <td></td>
  153.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_birthday_description'].'</td>
  154.                         </table>'
  155.         ))).
  156.         $this->partial('tables/innertable.php',
  157.                 array('config' => array('content' => '
  158.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  159.                         .$outercellcontroller
  160.                         .'<td valign="top">
  161.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  162.                             .$innercellcontroller
  163.                             .$this->partial('forms/tr/label_null_null.php',
  164.                                         array('config' => array('content' => '<select class="ui-selectbox" name="author_location_id" id="author_location_id" style="width: 100%">
  165.                                                                                 <option value="">&nbsp;</option>
  166.                                                                              '.$locations.'
  167.                                                                              </select>',
  168.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_location'],
  169.                                                                 'for' => 'author_location_id'
  170.                              )))
  171.                           .'</table>
  172.                           </td>'
  173.                         .'
  174.                           <td></td>
  175.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_location_description'].'</td>
  176.                         </table>'
  177.         ))).
  178.         $this->partial('tables/innertable.php',
  179.                 array('config' => array('content' => '
  180.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  181.                         .$outercellcontroller
  182.                         .'<td valign="top">
  183.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  184.                             .$innercellcontroller
  185.                             .$this->partial('forms/tr/label_null_input.php',
  186.                                         array('config' => array('id' => 'author_referral_user',
  187.                                                                 'name' => 'author_referral_user',
  188.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_referral_user'],
  189.                                                                 'value' => $CORE->input['author_referral_user'],
  190.                                                                 'maxlength' => 22
  191.                              )))
  192.                           .'</table>
  193.                           </td>'
  194.                         .'
  195.                           <td></td>
  196.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_referral_user_description'].'</td>
  197.                         </table>'
  198.         ))).
  199.         $this->partial('tables/innertable.php',
  200.                 array('config' => array('content' => '
  201.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  202.                         .$outercellcontroller
  203.                         .'<td valign="top">
  204.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  205.                             .$innercellcontroller
  206.                             .$this->partial('forms/tr/label_null_input.php',
  207.                                         array('config' => array('id' => 'author_password',
  208.                                                                 'name' => 'author_password',
  209.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_password'],
  210.                                                                 'value' => $CORE->input['author_password'],
  211.                                                                 'required' => true,
  212.                                                                 'password' => true,
  213.                                                                 'maxlength' => 32
  214.                             )))
  215.                             .$this->partial('forms/tr/label_null_input.php',
  216.                                         array('config' => array('id' => 'author_password_retype',
  217.                                                                 'name' => 'author_password_retype',
  218.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_password_retype'],
  219.                                                                 'value' => $CORE->input['author_password_retype'],
  220.                                                                 'required' => true,
  221.                                                                 'password' => true,
  222.                                                                 'maxlength' => 32
  223.                             )))
  224.                           .'</table>
  225.                           </td>'
  226.                         .'
  227.                           <td></td>
  228.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_password_description'].'</td>
  229.                         </table>'
  230.         ))).
  231.         $this->partial('tables/innertable.php',
  232.                 array('config' => array('content' => '
  233.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  234.                         .$outercellcontroller
  235.                         .'<td valign="top">
  236.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  237.                             .$innercellcontroller
  238.                             .$this->partial('forms/tr/label_null_null.php',
  239.                                         array('config' => array('content' => '<select class="ui-selectbox" name="author_find_website_options" id="author_find_website_options" style="width: 100%">
  240.                                                                                 <option value="">&nbsp;</option>
  241.                                                                              '.$findus.'
  242.                                                                              </select>',
  243.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_find_website_options'],
  244.                                                                 'required' => true,
  245.                                                                 'for' => 'author_find_website_options'
  246.                              )))
  247.                             .$this->partial('forms/tr/label_null_textarea.php',
  248.                                         array('config' => array('id' => 'author_find_website_refined',
  249.                                                                 'name' => 'author_find_website_refined',
  250.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_find_website_refined'],
  251.                                                                 'value' => $CORE->input['author_find_website_refined'],
  252.                                                                 'maxlength' => 255,
  253.                                                                 'height' => 95
  254.                             )))
  255.                           .'</table>
  256.                           </td>'
  257.                         .'
  258.                           <td></td>
  259.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_findus_description'].'</td>
  260.                         </table>'
  261.         ))).
  262.         $this->partial('tables/innertable.php',
  263.                 array('config' => array('content' => '
  264.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  265.                         .$outercellcontroller
  266.                         .'<td valign="top">
  267.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  268.                             .$innercellcontroller
  269.                             .$this->partial('forms/tr/label_null_input.php',
  270.                                         array('config' => array('id' => 'author_email',
  271.                                                                 'name' => 'author_email',
  272.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_email'],
  273.                                                                 'value' => $CORE->input['author_email'],
  274.                                                                 'required' => true,
  275.                                                                 'maxlength' => 255
  276.                             )))
  277.                             .$this->partial('forms/tr/label_null_input.php',
  278.                                         array('config' => array('id' => 'author_email_retype',
  279.                                                                 'name' => 'author_email_retype',
  280.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_email_retype'],
  281.                                                                 'value' => $CORE->input['author_email_retype'],
  282.                                                                 'required' => true,
  283.                                                                 'maxlength' => 255
  284.                             )))
  285.                           .'</table>
  286.                           </td>'
  287.                         .'
  288.                           <td></td>
  289.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_email_description'].'</td>
  290.                         </table>'
  291.         ))).
  292.         $this->partial('tables/innertable.php',
  293.                 array('config' => array('content' => '
  294.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  295.                         .$outercellcontroller
  296.                         .'<td valign="top">
  297.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  298.                             .$innercellcontroller
  299.                             .$this->partial('forms/tr/label_null_null.php',
  300.                                         array('config' => array('content' => '<table width="100%" cellpadding="0" cellspacing="0" summary="">
  301.                                                                                       <tr>
  302.                                                                                         <td width="120"></td>
  303.                                                                                         <td width="10"></td>
  304.                                                                                         <td width="auto"></td>
  305.                                                                                       </tr>'.
  306.                                                                                         $this->partial('forms/tr/label_null_null.php',
  307.                                                                                           array('config' => array('label' => $LANGUAGE->cache['global_text_contactform_agreement_conditions_of_use_link'],
  308.                                                                                                                   'content' => $this->partial('forms/clips/checkbox.php',
  309.                                                                                                                                  array('config' => array('label' => 'accept',
  310.                                                                                                                                                          'name' => 'author_agreement_conditions_of_use',
  311.                                                                                                                                                          'id' => 'author_agreement_conditions_of_use',
  312.                                                                                                                                                          'value' => 'true',
  313.                                                                                                                                                          'checked' => (($CORE->input['author_agreement_conditions_of_use'] == 'true')?true:false)
  314.                                                                                                                                                     )))
  315.                                                                                                                   ))).
  316.                                                                                         $this->partial('forms/tr/label_null_null.php',
  317.                                                                                           array('config' => array('label' => $LANGUAGE->cache['global_text_contactform_agreement_privacy_policy_link'],
  318.                                                                                                                   'content' => $this->partial('forms/clips/checkbox.php',
  319.                                                                                                                                  array('config' => array('label' => 'accept',
  320.                                                                                                                                                          'name' => 'author_agreement_privacy_policy',
  321.                                                                                                                                                          'id' => 'author_agreement_privacy_policy',
  322.                                                                                                                                                          'value' => 'true',
  323.                                                                                                                                                          'checked' => (($CORE->input['author_agreement_privacy_policy'] == 'true')?true:false)
  324.                                                                                                                                                     )))
  325.                                                                                                                   )))
  326.                                                                               .'</table>'
  327.                                                                 ,
  328.                                                                 'label' => $LANGUAGE->cache['global_text_contactform_agreements'],
  329.                                                                 'required' => true
  330.                              )))
  331.                           .'</table>
  332.                           </td>'
  333.                         .'
  334.                           <td></td>
  335.                           <td valign="top">'.$LANGUAGE->cache['global_text_contactform_agreements_description'].'</td>
  336.                         </table>'
  337.         ))).
  338.         $this->partial('tables/innertable.php',
  339.                 array('config' => array('content' => '
  340.                         <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  341.                         .$outercellcontroller
  342.                         .'<td valign="middle">
  343.                             <table width="100%" cellpadding="0" cellspacing="0" summary="">'
  344.                             .$innercellcontroller
  345.                            
  346.                            
  347.                             .'
  348.                             </table>
  349.                           </td>'
  350.                         .'
  351.                           <td></td>
  352.                           <td valign="top">'.$this->partial('forms/tr/label_null_button-right.php', array('config' => array('value' => $LANGUAGE->cache['global_text_contactform_submit_register']))).'</td>
  353.                         </table>'
  354.         )))
  355.        
  356.         ;
  357. print $this->partial('tables/table.php',
  358.                 array('config' => array('th' => '',
  359.                                         'td' => $innertables
  360.  
  361. )));
  362. ?>
  363.  
  364. </form>