[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/include/inc_tmpl/content/ -> cnt23.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2010 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  // ----------------------------------------------------------------
  24  // obligate check for phpwcms constants
  25  if (!defined('PHPWCMS_ROOT')) {
  26     die("You Cannot Access This Script Directly, Have a Nice Day.");
  27  }
  28  // ----------------------------------------------------------------
  29  
  30  
  31  // email contact form
  32  
  33  $field_counter = 0;
  34  initMootools();
  35  $BE['HEADER']['contentpart.js'] = getJavaScriptSourceLink('include/inc_js/contentpart.js');
  36  $BE['HEADER']['custom_js'] = '<script type="text/javascript">
  37  <!--
  38  function initMathSpam() {
  39      $("cform_field_value_0").value = "+ = '.
  40      $BL['be_cnt_field']['summing'].
  41      '\n- = '.
  42      $BL['be_cnt_field']['subtract'].
  43      '\n* = '.
  44      $BL['be_cnt_field']['multiply'].
  45      '\n: = '.
  46      $BL['be_cnt_field']['divide'].
  47      '\ncalc = '.
  48      $BL['be_cnt_field']['calculation'].
  49      '";
  50  }
  51  function setFieldValue(el) {
  52      if(el.options[el.selectedIndex].value == "mathspam") {
  53          initMathSpam();
  54      }
  55  }
  56  //-->
  57  </script>';
  58  
  59  
  60  
  61  if(empty($content['form']) || !is_array($content['form'])) $content['form'] = array();
  62  
  63  $content['form'] = array_merge( array(
  64      'subject'                => '',
  65      'startup'                => '',
  66      'startup_html'            => 0,
  67      'targettype'            => 'email',
  68      'class'                    => '',
  69      'target'                => '',
  70      "copyto"                => '',
  71      "sendcopy"                => 0,
  72      "onsuccess_redirect"    => 0,
  73      "onsuccess"                => '',
  74      "onerror_redirect"        => 0,
  75      "onerror"                => '',
  76      "template_format"        => 0,
  77      "template"                => '',
  78      "template_format_copy"    => 0,
  79      "template_copy"            => '',
  80      'template_equal'        => 1,
  81      "customform"            => '',
  82      'sender'                => '',
  83      'sendertype'            => 'email',
  84      'sendername'            => '',
  85      'sendernametype'        => 'custom',
  86      'cc'                    => '',
  87      'subjectselect'            => '',
  88      'savedb'                => 0,
  89      'saveprofile'            => 0,
  90      'verifyemail'            => '',
  91      'formtracking_off'        => 0,
  92      'checktofrom'            => 0,
  93      'function_to'            => '',
  94      'function_cc'            => ''    ), $content['form']);
  95  
  96  $content['profile_fields'] = array(
  97                  "title"            => $BL['be_profile_label_title'],
  98                  "firstname"        => $BL['be_profile_label_firstname'],
  99                  "lastname"        => $BL['be_profile_label_name'],
 100                  "company"        => $BL['be_profile_label_company'],
 101                  "street"        => $BL['be_profile_label_street'],
 102                  "add"            => $BL['be_profile_label_add'],
 103                  "city"            => $BL['be_profile_label_city'],
 104                  "zip"            => $BL['be_profile_label_zip'],
 105                  "region"        => $BL['be_profile_label_state'],
 106                  "country"        => $BL['be_profile_label_country'],
 107                  "fon"            => $BL['be_profile_label_phone'],
 108                  "fax"            => $BL['be_profile_label_fax'],
 109                  "mobile"        => $BL['be_profile_label_cellphone'],
 110                  "signature"        => $BL['be_profile_label_signature'],
 111                  'notes'            => $BL['be_profile_label_notes'],
 112                  "prof"            => $BL['be_profile_label_profession'],
 113                  "newsletter"    => $BL['be_profile_label_newsletter'],
 114                  "website"        => $BL['be_profile_label_website'],
 115                  'gender'        => $BL['be_profile_label_gender'],
 116                  'birthday'        => $BL['be_profile_label_birthday'],
 117                  "varchar1"        => $BL['be_cnt_field']['text'].' 1',
 118                  "varchar2"        => $BL['be_cnt_field']['text'].' 2',
 119                  "varchar3"        => $BL['be_cnt_field']['text'].' 3',
 120                  "varchar4"        => $BL['be_cnt_field']['text'].' 4',
 121                  "varchar5"        => $BL['be_cnt_field']['text'].' 5',
 122                  "text1"            => $BL['be_cnt_field']['textarea'].' 1',
 123                  "text2"            => $BL['be_cnt_field']['textarea'].' 2',
 124                  "text3"            => $BL['be_cnt_field']['textarea'].' 3'
 125              );
 126              
 127  $content['profile_fields_varchar'] = array(
 128                  "title"            => $BL['be_profile_label_title'],
 129                  "firstname"        => $BL['be_profile_label_firstname'],
 130                  "lastname"        => $BL['be_profile_label_name'],
 131                  "company"        => $BL['be_profile_label_company'],
 132                  "street"        => $BL['be_profile_label_street'],
 133                  "add"            => $BL['be_profile_label_add'],
 134                  "city"            => $BL['be_profile_label_city'],
 135                  "zip"            => $BL['be_profile_label_zip'],
 136                  "region"        => $BL['be_profile_label_state'],
 137                  "country"        => $BL['be_profile_label_country'],
 138                  "fon"            => $BL['be_profile_label_phone'],
 139                  "fax"            => $BL['be_profile_label_fax'],
 140                  "mobile"        => $BL['be_profile_label_cellphone'],
 141                  "email"            => $BL['be_profile_label_email'],
 142                  "password"        => $BL['be_cnt_field']['password'],
 143                  "signature"        => $BL['be_profile_label_signature'],
 144                  "prof"            => $BL['be_profile_label_profession'],
 145                  "website"        => $BL['be_profile_label_website'],
 146                  'gender'        => $BL['be_profile_label_gender'],
 147                  "varchar1"        => $BL['be_cnt_field']['text'].' 1',
 148                  "varchar2"        => $BL['be_cnt_field']['text'].' 2',
 149                  "varchar3"        => $BL['be_cnt_field']['text'].' 3',
 150                  "varchar4"        => $BL['be_cnt_field']['text'].' 4',
 151                  "varchar5"        => $BL['be_cnt_field']['text'].' 5'
 152              );
 153  $content['profile_fields_longtext'] = array(
 154                  'notes'            => $BL['be_profile_label_notes'],
 155                  "text1"            => $BL['be_cnt_field']['textarea'].' 1',
 156                  "text2"            => $BL['be_cnt_field']['textarea'].' 2',
 157                  "text3"            => $BL['be_cnt_field']['textarea'].' 3'
 158              );
 159  
 160  
 161  $for_select     = '';
 162  $for_select_2    = '';
 163  
 164  // always disable switching content part for form - too complex settings and better to safe the user for himself
 165  initMootools();
 166  $BE['BODY_CLOSE'][] = '<script language="javascript" type="text/javascript">document.getElementById("target_ctype").disabled = true;</script>';
 167  
 168  ?>
 169  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /><input type="hidden" name="target_ctype" value="23" /></td></tr>
 170  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 171  <tr>
 172  <td align="right" class="chatlist"><?php echo $BL['be_msg_subject'] ?>:&nbsp;</td>
 173  <td valign="top"><table summary="" cellpadding="0" cellspacing="0" border="0">
 174    <tr>
 175        <td><select name="cform_subjectselect" class="v11" style="width:200px">
 176      
 177          <option value=""><?php echo $BL['be_msg_subject'] ?></option>
 178  <?php
 179  
 180  $cc_listing         = '';
 181  $recipient_option    = '';
 182  $sender_option         = '';
 183  $sendername_option    = '';
 184  $subject_option        = '';
 185  
 186  if(isset($content['form']["fields"]) && is_array($content['form']["fields"]) && count($content['form']["fields"])) {
 187      foreach($content['form']["fields"] as $key => $value) {
 188      
 189          $for_copy            = false;
 190          $for_sendername        = false;
 191          $for_email            = false;
 192          $for_placeholder    = true;
 193          $for_subject        = false;
 194          $for_newsletter        = false;
 195          $for_name            = html_specialchars($content['form']["fields"][$key]['name']);
 196    
 197            switch($content['form']["fields"][$key]['type']) {
 198          
 199              case 'text':        $for_copy         = true;
 200                                  $for_sendername    = true;
 201                                  $for_subject    = true;
 202                                  break;
 203                              
 204              case 'email':        $for_copy         = true;
 205                                  $for_email         = true;
 206                                  $for_sendername    = true;
 207                                  break;
 208                              
 209              case 'selectemail':    $for_copy         = true;
 210                                  $for_email         = true;
 211                                  break;
 212                              
 213              case 'hidden':        $for_copy         = true;
 214                                  $for_subject    = true;
 215                                  break;
 216                              
 217              case 'newsletter':    $for_newsletter    = true;
 218                                  break;
 219                              
 220              case 'select':
 221              case 'list':        $for_subject    = true;
 222                                  break;
 223          }
 224          
 225          if($for_subject) {
 226          
 227              $subject_option .= '    <option value="formfield_'.$for_name.'"';
 228              $subject_option .= is_selected($content['form']['subjectselect'], 'formfield_'.$content['form']['fields'][$key]['name'], 0, 0);
 229              $subject_option .= '>'.$BL['be_cnt_guestbook_form'].': '.$for_name.'</option>'.LF;
 230          
 231          }
 232          
 233          if($for_copy) {
 234          
 235              $cc_listing .= '    <option value="'.$for_name.'"';
 236              $cc_listing .= is_selected($content['form']["copyto"], $content['form']['fields'][$key]['name'], 0, 0);
 237              $cc_listing .= '>'.$for_name.'</option>'.LF;
 238              
 239              if($for_email) {
 240              
 241                  $recipient_option .= '    <option value="emailfield_'.$for_name.'"';
 242                  $recipient_option .= is_selected($content['form']['targettype'], 'emailfield_'.$content['form']['fields'][$key]['name'], 0, 0);
 243                  $recipient_option .= '>'.$BL['be_cnt_guestbook_form'].': '.$for_name.'</option>'.LF;
 244                  
 245                  $sender_option .= '    <option value="emailfield_'.$for_name.'"';
 246                  $sender_option .= is_selected($content['form']['sendertype'], 'emailfield_'.$content['form']['fields'][$key]['name'], 0, 0);
 247                  $sender_option .= '>'.$BL['be_cnt_guestbook_form'].': '.$for_name.'</option>'.LF;
 248  
 249              }
 250              
 251              if($for_sendername) {
 252              
 253                  $sendername_option .= '    <option value="formfield_'.$for_name.'"';
 254                  $sendername_option .= is_selected($content['form']['sendernametype'], 'formfield_'.$content['form']['fields'][$key]['name'], 0, 0);
 255                  $sendername_option .= '>'.$BL['be_cnt_guestbook_form'].': '.$for_name.'</option>'.LF;
 256  
 257              }
 258              
 259          }
 260          
 261          
 262          // parallel building of the placeholder tag menu for the template
 263          switch($content['form']["fields"][$key]['type']) {
 264          
 265              case 'submit':        $for_placeholder = false;
 266                                  break;
 267                                  
 268              case 'reset':        $for_placeholder = false;
 269                                  break;
 270                                  
 271              case 'break':        $for_placeholder = false;
 272                                  break;
 273                                  
 274              case 'breaktext':    $for_placeholder = false;
 275                                  break;
 276  
 277          }
 278          
 279          $for_select_2   .= '<option value="';
 280          $for_tempselect  = '';
 281          if($for_placeholder) {
 282          
 283              $for_select   .= '<option value="{'.$for_name.'}">';
 284              if(!empty($content['form']["fields"][$key]['label'])) {
 285                  $for_select     .= html_entities($content['form']["fields"][$key]['label']).' ';
 286                  $for_tempselect .= html_entities($content['form']["fields"][$key]['label']).' ';
 287              }
 288              $for_select   .= '{'.$for_name."}</option>\n";
 289              
 290              $for_select_2 .= '{ERROR:'.$for_name.'}{LABEL:'.$for_name.'}';
 291          
 292          }
 293          $for_select_2 .= '{'.$for_name.'}">'.$for_tempselect.'{'.$for_name."}</option>\n";
 294          
 295      }
 296  }
 297  
 298  echo $subject_option;
 299    
 300  ?>  
 301       </select></td>
 302      <td>&nbsp;</td>
 303        <td><input name="cform_subject" type="text" id="cform_subject" class="f11b" style="width:230px" value="<?php echo  html_entities($content['form']["subject"]) ?>" size="40" /></td>
 304    </tr>
 305    </table></td>
 306  </tr>
 307  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 308  <tr>
 309  <td align="right" class="chatlist"><?php echo $BL['be_cnt_recipient'] ?>:&nbsp;</td>
 310  <td valign="top"><table summary="" cellpadding="0" cellspacing="0" border="0">
 311    <tr>
 312    <td><select name="cform_targettype" class="v11" style="width:200px">
 313  <?php 
 314    
 315      echo '    <option value="email"'. is_selected('email', $content['form']['targettype'],0,0) .'>'.$BL['be_profile_label_email'].'</option>'.LF;
 316      echo $recipient_option;
 317  ?>  
 318  
 319    </select></td>
 320    <td>&nbsp;</td>
 321    <td><input name="cform_target" type="text" id="cform_target" class="f11b" style="width:230px" value="<?php echo  html_entities($content['form']["target"]) ?>" size="40" /></td>
 322    </tr>
 323  </table></td>
 324  </tr>
 325  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 326  <tr>
 327  <td align="right" class="chatlist"><?php echo $BL['be_newsletter_fromemail'] ?>:&nbsp;</td>
 328  <td valign="top"><table summary="" cellpadding="0" cellspacing="0" border="0">
 329    <tr>
 330    <td><select name="cform_sendertype" class="v11 width200">
 331  <?php
 332        echo '    <option value="email"'. is_selected('email', $content['form']['sendertype'],0,0) .'>'.$BL['be_profile_label_email'].'</option>'.LF;
 333      echo '    <option value="system"'. is_selected('system', $content['form']['sendertype'],0,0) .'>'.$BL['be_cnt_sysadmin_system'].': '.html_entities($phpwcms['SMTP_FROM_EMAIL']).'</option>'.LF;
 334    
 335        echo $sender_option;
 336  ?>
 337      </select></td>
 338    <td>&nbsp;</td>
 339    <td><input name="cform_sender" type="text" id="cform_sender" class="f11b" style="width:230px" value="<?php echo  html_entities($content['form']['sender']) ?>" size="40" /></td>
 340    </tr>
 341  </table></td>
 342  </tr>
 343  
 344  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 345  <tr>
 346  <td align="right" class="chatlist"><?php echo $BL['be_newsletter_fromname'] ?>:&nbsp;</td>
 347  <td valign="top"><table summary="" cellpadding="0" cellspacing="0" border="0">
 348    <tr>
 349    <td><select name="cform_sendernametype" class="v11 width200">
 350  <?php
 351        echo '    <option value="custom"'. is_selected('custom', $content['form']['sendernametype'],0,0) .'>'.$BL['be_cnt_ecardform_name'].'</option>'.LF;
 352      echo '    <option value="system"'. is_selected('system', $content['form']['sendernametype'],0,0) .'>'.$BL['be_cnt_sysadmin_system'].': '.html_entities($phpwcms['SMTP_FROM_NAME']).'</option>'.LF;
 353    
 354        echo $sendername_option;
 355  ?>
 356      </select></td>
 357    <td>&nbsp;</td>
 358    <td><input name="cform_sendername" type="text" id="cform_sendername" class="f11b" style="width:230px" value="<?php echo  html_specialchars($content['form']['sendername']) ?>" size="40" /></td>
 359    </tr>
 360  </table></td>
 361  </tr>
 362  
 363  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
 364  
 365  <tr>
 366  <td align="right" class="chatlist"><?php echo $BL['be_cnt_send_copy_to']?>:&nbsp;</td>
 367  <td valign="top"><table summary="" cellpadding="0" cellspacing="0" border="0">
 368    <tr>
 369    <td bgcolor="#E7E8EB"><input type="checkbox" name="cform_sendcopy" value="1"<?php echo is_checked('1', $content['form']["sendcopy"], 0, 0) ?> title="send copy to selected field" /></td>
 370    <td><select name="cform_copyto" class="v11" style="width:180px;">
 371  <?php echo $cc_listing; ?>
 372    </select></td>
 373    <td>&nbsp;</td>
 374    <td><input name="cform_cc" type="text" id="cform_cc" class="f11b" style="width:230px" value="<?php echo  html_specialchars($content['form']['cc']) ?>" size="40" /></td>
 375    </tr>
 376  </table></td>
 377  </tr>
 378  
 379  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
 380  
 381  <tr>
 382      <td align="right">&nbsp;</td>
 383      <td><table summary="" cellpadding="0" cellspacing="0" border="0" bgcolor="#E7E8EB">
 384            <tr>
 385                <td><input type="checkbox" name="cform_checktofrom" id="cform_checktofrom" value="1" <?php is_checked(1, $content['form']['checktofrom']) ?> /></td>
 386                <td class="v10"><label for="cform_checktofrom">&nbsp;<?php echo $BL['be_cnt_field']['checktofrom'] ?></label>&nbsp;</td>
 387          </tr>
 388          </table>
 389      </td>
 390  </tr>
 391  
 392  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 393  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
 394  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 395  
 396  
 397  <tr>
 398      <td align="right" class="chatlist tdtop4"><?php echo $BL['be_cnt_database'] ?>:&nbsp;</td>
 399      <td><?php
 400  
 401  // check form entries
 402  if($content["id"]) {
 403  
 404      $entries = _dbQuery('SELECT COUNT(*) FROM '.DB_PREPEND.'phpwcms_formresult WHERE formresult_pid='.$content['id'], 'COUNT');
 405  
 406      // yepp - available - link to export script
 407      if($entries > 0) {
 408      
 409          echo '<div style="float:right;padding-right:10px;">';
 410          echo "<button onclick=\"window.open('include/inc_act/act_export.php?action=exportformresult&amp;fid=";
 411          echo $content['id']."', 'Zweitfenster');\" class=\"f11b\" style=\"padding: 2px 6px 2px 4px\">";
 412          echo '<img src="img/icons/small_icon_xls.gif" alt="Excel Sheet" style="position: relative; top:1;" />&nbsp;';
 413          echo $BL['be_cnt_download'].'<span style="font-weight:normal;">&nbsp;('.$entries.')</span></button></div>';
 414          
 415      }
 416      
 417  }
 418              ?><table summary="" cellpadding="0" cellspacing="0" border="0">
 419            <tr>
 420                <td bgcolor="#E7E8EB"><input type="checkbox" name="cform_savedb" id="cform_savedb" value="1" <?php echo is_checked(1, $content['form']["savedb"], 0, 0) ?> /></td>
 421                <td class="v10" bgcolor="#E7E8EB"><label for="cform_savedb">&nbsp;<?php echo $BL['be_cnt_formsave_in_db'] ?></label>&nbsp;</td>
 422          </tr>
 423            <tr>
 424              <td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td>
 425        </tr>
 426            <tr>
 427              <td bgcolor="#E7E8EB"><input type="checkbox" name="cform_saveprofile" id="cform_saveprofile" value="1" <?php echo is_checked(1, $content['form']["saveprofile"], 0, 0) ?> onchange="this.form.submit();" /></td>
 428              <td class="v10" bgcolor="#E7E8EB"><label for="cform_saveprofile">&nbsp;<?php echo $BL['be_cnt_formsave_profile'] ?></label>&nbsp;</td>
 429        </tr>
 430            <tr>
 431              <td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td>
 432        </tr>
 433            <tr>
 434              <td bgcolor="#E7E8EB"><input type="checkbox" name="cform_tracking_off" id="cform_tracking_off" value="1" <?php echo is_checked(1, $content['form']["formtracking_off"], 0, 0) ?> /></td>
 435              <td class="v10" bgcolor="#E7E8EB"><label for="cform_tracking_off">&nbsp;<?php echo $BL['be_cnt_field']['formtracking_off'] ?></label>&nbsp;</td>
 436        </tr>
 437          </table>
 438    </td>
 439  </tr>
 440  
 441  
 442  
 443  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 444  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
 445  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 446  
 447  <tr>
 448      <td align="right" class="chatlist" valign="top"><img src="img/leer.gif" alt="" width="1" height="15" /><?php echo $BL['be_admin_tmpl_default'] ?>:&nbsp;</td>
 449  <td>
 450      <table summary="" cellpadding="1" cellspacing="0" border="0">
 451      <tr bgcolor="#E7E8EB">
 452          <td><input type="radio" name="cform_startup_html" id="cform_startup_html0" value="0"<?php echo is_checked('0', $content['form']["startup_html"], 0, 0) ?> title="Text" /></td>
 453          <td class="v10"><label for="cform_startup_html0">Text&nbsp;</label>&nbsp;</td>
 454          <td><input type="radio" name="cform_startup_html" id="cform_startup_html1" value="1"<?php echo is_checked('1', $content['form']["startup_html"], 0, 0) ?> title="HTML" /></td>
 455          <td class="v10"><label for="cform_startup_html1">HTML&nbsp;</label>&nbsp;</td>
 456      </tr>
 457      </table>
 458      <textarea name="cform_startup" id="cform_startup" rows="5" class="f11" style="width:440px;"><?php echo  html_entities($content['form']["startup"]) ?></textarea></td>
 459  </tr>
 460  
 461  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 462  
 463  <tr>
 464  <td align="right" class="chatlist" valign="top"><img src="img/leer.gif" alt="" width="1" height="15" /><?php echo $BL['be_cnt_onsuccess'] ?>:&nbsp;</td>
 465  <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 466      <tr bgcolor="#E7E8EB">
 467          <td><input type="radio" name="cform_onsuccess_redirect" id="cform_onsuccess_redirect0" value="0"<?php echo is_checked('0', $content['form']["onsuccess_redirect"], 0, 0) ?> title="redirect on success" /></td>
 468          <td class="v10"><label for="cform_onsuccess_redirect0">Text&nbsp;</label>&nbsp;</td>
 469          <td><input type="radio" name="cform_onsuccess_redirect" id="cform_onsuccess_redirect2" value="2"<?php echo is_checked('2', $content['form']["onsuccess_redirect"], 0, 0) ?> title="redirect on success" /></td>
 470          <td class="v10"><label for="cform_onsuccess_redirect2">HTML&nbsp;</label>&nbsp;</td>
 471          <?php
 472          if($for_select != '') {
 473              echo '<td style="padding:2px;"><select name="successInfo" id="successInfo" class="v10 width200" ';
 474              echo 'onChange="insertAtCursorPos(document.articlecontent.cform_onsuccess, ';
 475              echo 'document.articlecontent.successInfo.options[document.articlecontent.successInfo.selectedIndex].value);">';
 476              echo $for_select;
 477              echo '<option value="{REMOTE_IP}">{REMOTE_IP}</option>'.LF;
 478              echo '</select></td>';
 479              echo '<td style="padding-right:3px;"><img src="img/button/go04.gif" alt="" width="15" height="15" title="insert field placeholder" border="0" ';
 480              echo 'onclick="insertAtCursorPos(document.articlecontent.cform_onsuccess, ';
 481              echo 'document.articlecontent.successInfo.options[document.articlecontent.successInfo.selectedIndex].value);" style="margin:3px;" /></td>';
 482          }
 483          ?>
 484          <td bgcolor="#FFFFFF">&nbsp;</td>
 485          <td><input type="radio" name="cform_onsuccess_redirect" id="cform_onsuccess_redirect1" value="1"<?php echo is_checked('1', $content['form']["onsuccess_redirect"], 0, 0) ?> title="redirect on success" /></td>
 486          <td class="v10"><label for="cform_onsuccess_redirect1">Redirect</label>&nbsp;&nbsp;</td>
 487  
 488          
 489          
 490      </tr>
 491  </table>
 492  <textarea name="cform_onsuccess" id="cform_onsuccess" rows="3" class="f11" style="font-size:11px;width:440px;"><?php echo  html_entities($content['form']["onsuccess"]) ?></textarea>
 493  </td>
 494  </tr>
 495  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr>
 496  <tr>
 497  <td align="right" class="chatlist" valign="top"><img src="img/leer.gif" alt="" width="1" height="15" /><?php echo $BL['be_cnt_onerror'] ?>:&nbsp;</td>
 498  <td><table summary="" cellpadding="1" cellspacing="0" border="0">
 499      <tr bgcolor="#E7E8EB">
 500          <td><input type="radio" name="cform_onerror_redirect" id="cform_onerror_redirect0" value="0"<?php echo is_checked('0', $content['form']["onerror_redirect"], 0, 0) ?> title="redirect on success" /></td>
 501          <td class="v10"><label for="cform_onerror_redirect0">Text&nbsp;</label>&nbsp;</td>
 502          <td><input type="radio" name="cform_onerror_redirect" id="cform_onerror_redirect2" value="2"<?php echo is_checked('2', $content['form']["onerror_redirect"], 0, 0) ?> title="redirect on success" /></td>
 503          <td class="v10"><label for="cform_onerror_redirect2">HTML&nbsp;</label>&nbsp;</td>
 504          <td bgcolor="#FFFFFF" style="padding-bottom: 5px;">&nbsp;</td>
 505          <td><input type="radio" name="cform_onerror_redirect" id="cform_onerror_redirect1" value="1"<?php echo is_checked('1', $content['form']["onerror_redirect"], 0, 0) ?> title="redirect on success" /></td>
 506          <td class="v10"><label for="cform_onerror_redirect1">Redirect</label>
 507          &nbsp;&nbsp;</td>
 508      </tr>
 509  </table>
 510  <textarea name="cform_onerror" rows="3" class="f11" style="font-size:11px;width:440px;"><?php echo  html_entities($content['form']["onerror"]) ?></textarea>
 511  </td>
 512  </tr>
 513  
 514  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 515  
 516  <tr><td colspan="2">
 517  
 518  <table summary="" cellpadding="0" cellspacing="1" border="0">
 519  
 520  <tr bgcolor="#DAE4ED"><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 521  
 522  <tr bgcolor="#E7E8EB">
 523  <td colspan="2" class="chatlist" align="right"><?php echo $BL['be_cnt_reference_basis'] ?>:&nbsp;</td>
 524  <td colspan="6" style="padding:3px 0 3px 0"><table summary="" cellpadding="0" cellspacing="0" border="0">
 525      <tr>
 526      <?php
 527      if(!isset($content['form']["labelpos"])) {
 528          $content['form']["labelpos"] = 0;
 529          // 0 = default = in front of form field
 530          // 1 = above form field
 531      }
 532      ?>
 533      <td><input type="radio" name="cform_labelpos" id="cform_labelpos0" value="0"<?php echo  is_checked(0, $content['form']["labelpos"], 0, 1) ?> /></td>
 534      <td><label for="cform_labelpos0"><img src="img/symbole/label_1.gif" width="70" height="22" alt="" /></label></td>
 535  
 536      <td>&nbsp;&nbsp;</td>
 537      <td><input type="radio" name="cform_labelpos" id="cform_labelpos1" value="1"<?php echo  is_checked(1, $content['form']["labelpos"], 0, 1) ?> /></td>
 538      <td><label for="cform_labelpos1"><img src="img/symbole/label_2.gif" width="60" height="22" alt="" /></label></td>
 539  
 540      <td>&nbsp;&nbsp;</td>
 541      <td><input type="radio" name="cform_labelpos" id="cform_labelpos2" value="2"<?php echo  is_checked(2, $content['form']["labelpos"], 0, 1) ?> /></td>
 542      <td><label for="cform_labelpos2"><img src="img/symbole/label_3.gif" width="60" height="22" alt="" /></label></td>
 543      </tr>
 544  </table></td>
 545  </tr>
 546  <tr bgcolor="#DAE4ED"><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 547  <tr><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 548  
 549  
 550  <tr>
 551      <td colspan="2" class="chatlist" align="right"><?php echo $BL['be_cnt_form_class'] ?>:&nbsp;</td>
 552      <td><input type="text" name="cform_class" class="v10" style="width:120px;" value="<?php echo  (isset($content['form']["class"]) ? html_specialchars($content['form']["class"]) : '') ?>" /></td>
 553      <td class="chatlist" align="right">&nbsp;<?php echo $BL['be_cnt_label_wrap'] ?>:&nbsp;</td>
 554      <td colspan="4"><input type="text" name="cform_label_wrap" class="v10" style="width:81px;" value="<?php echo  (isset($content['form']["label_wrap"]) ? html_entities($content['form']["label_wrap"]) : '|') ?>" /></td>
 555  </tr>
 556  
 557  <tr>
 558      <td colspan="2" class="chatlist" align="right"><?php echo $BL['be_cnt_req_mark'] ?>:&nbsp;</td>
 559      <td><input type="text" name="cform_reqmark" class="v10" style="width:120px;" value="<?php echo  (isset($content['form']["cform_reqmark"]) ? html_entities($content['form']["cform_reqmark"]) : '*') ?>" /></td>
 560      <td class="chatlist" align="right">&nbsp;<?php echo $BL['be_cnt_error_class'] ?>:&nbsp;</td>
 561      <td colspan="4"><input type="text" name="cform_error_class" class="v10" style="width:81px;" value="<?php echo  (isset($content['form']["error_class"]) ? html_specialchars($content['form']["error_class"]) : '') ?>" /></td>
 562  </tr>
 563  
 564  <tr>
 565      <td colspan="2" class="chatlist" align="right"><?php echo $BL['be_cnt_function_validate'] ?>:&nbsp;</td>
 566      <td><input type="text" name="cform_function_validate" class="v10" style="width:120px;" value="<?php echo (isset($content['form']["cform_function_validate"]) ? html_entities($content['form']["cform_function_validate"]) : '') ?>" /></td>
 567      <td colspan="4">&nbsp;</td>
 568  </tr>
 569  
 570  
 571  
 572  <tr><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 573  <tr bgcolor="#DAE4ED"><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 574  <tr bgcolor="#E6ECF2">
 575      <td style="width:30px">&nbsp;</td>
 576      <td class="chatlist" style="padding: 1px">&nbsp;<?php echo $BL['be_cnt_type'] ?>:</td>
 577      <td class="chatlist" style="padding: 1px">&nbsp;<?php echo $BL['be_newsletter_name'] ?>:</td>    
 578      <td class="chatlist" style="padding: 1px">&nbsp;<?php echo $BL['be_cnt_label'] ?>:</td>
 579      <td class="chatlist" title="size/columns" style="padding: 1px">&nbsp;S/C:</td>
 580      <td class="chatlist" title="maxlength/rows" style="padding: 1px">&nbsp;M/R:</td>
 581      <td align="center" style="padding: 1px"><img src="img/article/fill_in_here.gif" alt="<?php echo $BL['be_cnt_needed'] ?>" title="<?php echo $BL['be_cnt_needed'] ?>" border="0" /></td>
 582      <td align="center" style="padding: 1px"><img src="img/button/trash_13x13_1.gif" alt="<?php echo $BL['be_cnt_delete'] ?>" title="<?php echo $BL['be_cnt_delete'] ?>" border="0" /></td>
 583  </tr>
 584  <?php
 585  if(isset($content['form']["fields"]) && is_array($content['form']["fields"]) && count($content['form']["fields"])) {
 586  
 587      $field_counter            = 1;
 588      $field_max                = count($content['form']["fields"]);
 589      $field_js                = array( 'showAll' => array(), 'hideAll' => array(), 'varcharFields' => array(), 'longtextFields' => array() );
 590      
 591      foreach($content['form']["fields"] as $key => $value) {
 592      
 593          $field_bg                = ($field_counter % 2) ? '' : ' bgcolor="#F3F5F8"';
 594          $field_row4                = '';
 595      
 596          // generate javascript code part 1
 597          $field_js['showAll'][$key]  = '    showHide_CntFormfieldRow(\'formRow_'.$field_counter.'\', \'block\'';
 598          $field_js['hideAll'][$key]  = '    showHide_CntFormfieldRow(\'formRow_'.$field_counter.'\', \'none\'';
 599      
 600          echo '<tr'.$field_bg.'>'.LF;
 601          echo '<td align="center" id="formRow_'.$field_counter.'">';
 602          echo '<a href="#" onclick="return showHide_CntFormfieldRow(\'formRow_'.$field_counter.'\', \'none\'';
 603  
 604          // some field specific checks and settings
 605          switch($content['form']["fields"][$key]['type']) {
 606          
 607              case 'newsletter':        // default hide/show
 608                                      echo ', 4';
 609                                      
 610                                      $field_row4  = '<tr'.$field_bg.' id="formRow_'.$field_counter.'_4">'.LF;
 611                                      $field_row4 .= '<td colspan="2" class="chatlist" align="right" valign="top">&nbsp;<img src="img/leer.gif" width="1" height="15" alt="" />';
 612                                      $field_row4 .= $BL['be_cnt_bid_verifyemail'].':&nbsp;</td>'.LF;
 613                                      $field_row4 .= '<td colspan="6"><textarea name="cform_field_verifyemail" ';
 614                                      $field_row4 .= 'id="cform_field_verifyemail" rows="5" class="code" style="font-size:11px;width:323px;" wrap="off">';
 615                                      $field_row4 .= html_entities($content['form']['verifyemail']).'</textarea></td>';
 616                                      $field_row4 .= LF.'</tr>'.LF;
 617                                      
 618                                      $field_js['showAll'][$key] .= ', 4';
 619                                      $field_js['hideAll'][$key] .= ', 4';
 620                                      
 621                                      break;
 622                                      
 623              case 'text':
 624              case 'special':
 625              case 'email':
 626              case 'password':
 627              case 'hidden':
 628              case 'select':
 629              case 'selectemail':
 630              case 'country':
 631              case 'radio':            // default hide/show
 632                                      if($content['form']["saveprofile"]) {
 633                                          echo ', 4';
 634      
 635                                          $field_row4  = '<tr'.$field_bg.' id="formRow_'.$field_counter.'_4">'.LF;
 636                                          $field_row4 .= '<td colspan="2" class="chatlist" align="right">'.$BL['be_cnt_store_in'].':&nbsp;</td>'.LF;
 637                                          $field_row4 .= '<td colspan="6" id="cform_field_profile_'.$field_counter.'_td">';
 638                                          
 639                                          if(!empty($content['form']["fields"][$key]['profile']) && isset($content['profile_fields_varchar'][ $content['form']["fields"][$key]['profile'] ])) {
 640                                          
 641                                              $field_js['varcharFields'][$field_counter]  = '<"+"option value=\"'.$content['form']["fields"][$key]['profile'].'\" selected=\"selected\">';
 642                                              $field_js['varcharFields'][$field_counter] .= $content['profile_fields_varchar'][ $content['form']["fields"][$key]['profile'] ].'<"+"/option>';
 643                                              unset($content['profile_fields_varchar'][ $content['form']["fields"][$key]['profile'] ]);
 644                                          
 645                                          } else {
 646                                          
 647                                              $field_js['varcharFields'][$field_counter] = '';
 648                                          
 649                                          }
 650                                          
 651                                          $field_row4 .= '</td>'.LF.'</tr>'.LF;
 652      
 653                                          $field_js['showAll'][$key] .= ', 4';
 654                                          $field_js['hideAll'][$key] .= ', 4';
 655                                      }
 656                                      break;
 657  
 658  
 659              case 'textarea':
 660              case 'checkbox':
 661              case 'list':            // default hide/show
 662                                      if($content['form']["saveprofile"]) {
 663                                          echo ', 4';
 664      
 665                                          $field_row4  = '<tr'.$field_bg.' id="formRow_'.$field_counter.'_4">'.LF;
 666                                          $field_row4 .= '<td colspan="2" class="chatlist" align="right">'.$BL['be_cnt_store_in'].':&nbsp;</td>'.LF;
 667                                          $field_row4 .= '<td colspan="6" id="cform_field_profile_'.$field_counter.'_td">';
 668                                          
 669                                          if(!empty($content['form']["fields"][$key]['profile']) && isset($content['profile_fields_longtext'][ $content['form']["fields"][$key]['profile'] ])) {
 670                                          
 671                                              $field_js['longtextFields'][$field_counter]  = '<"+"option value=\"'.$content['form']["fields"][$key]['profile'].'\" selected=\"selected\">';
 672                                              $field_js['longtextFields'][$field_counter] .= $content['profile_fields_longtext'][ $content['form']["fields"][$key]['profile'] ].'<"+"/option>';
 673                                              unset($content['profile_fields_longtext'][ $content['form']["fields"][$key]['profile'] ]);
 674                                          
 675                                          } else {
 676                                          
 677                                              $field_js['longtextFields'][$field_counter] = '';
 678                                          }
 679                                          
 680                                          $field_row4 .= '</td>'.LF.'</tr>'.LF;
 681      
 682                                          $field_js['showAll'][$key] .= ', 4';
 683                                          $field_js['hideAll'][$key] .= ', 4';
 684                                      }
 685                                      break;
 686  
 687  
 688              case 'mathspam':
 689              case 'recaptcha':        $_ini_values = $content['form']["fields"][$key]['value'];
 690                                      $content['form']["fields"][$key]['value'] = '';
 691                  
 692                                      foreach($_ini_values as $item_key => $item) {
 693                                      
 694                                          $content['form']["fields"][$key]['value'] .= $item_key . ' = ' . $item . LF;
 695                                      
 696                                      }                                
 697                                      
 698                                      $content['form']["fields"][$key]['value'] = trim($content['form']["fields"][$key]['value']);
 699                                      
 700                                      unset($_ini_values);
 701                                      
 702                                      break;
 703                                  
 704                                  
 705          }
 706          
 707          echo ')"><img src="img/button/arrow_opened.gif" alt="" border="0" /></a>';
 708          echo '</td>'.LF.'<td>';
 709          echo '<select name="cform_field_type['.$field_counter.']" class="v10" style="width:140px">'.LF;
 710          echo '<option value="text"'.         is_selected('text',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['text'].'</option>'.LF;
 711          echo '<option value="textarea"'.     is_selected('textarea',     $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['textarea'].'</option>'.LF;
 712          echo '<option value="special"'.     is_selected('special',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['special'].'</option>'.LF;
 713          echo '<option value="hidden"'.         is_selected('hidden',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['hidden'].'</option>'.LF;
 714          echo '<option value="password"'.     is_selected('password',     $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['password'].'</option>'.LF;
 715          echo '<option value="email"'.         is_selected('email',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['email'].'</option>'.LF;
 716          echo '<option value="selectemail"'.    is_selected('selectemail',    $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['selectemail'].'</option>'.LF;
 717          echo '<option value="select"'.         is_selected('select',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['select'].'</option>'.LF;
 718          echo '<option value="country"'.     is_selected('country',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['country'].'</option>'.LF;
 719          echo '<option value="list"'.         is_selected('list',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['list'].'</option>'.LF;
 720          echo '<option value="newsletter"'.     is_selected('newsletter',     $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['newsletter'].'</option>'.LF;
 721          echo '<option value="checkbox"'.     is_selected('checkbox',     $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['checkbox'].'</option>'.LF;
 722          echo '<option value="radio"'.         is_selected('radio',        $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['radio'].'</option>'.LF;
 723          echo '<option value="upload"'.         is_selected('upload',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['upload'].'</option>'.LF;
 724          echo '<option value="recaptcha"'.     is_selected('recaptcha',    $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['recaptcha'].'</option>'.LF;
 725          echo '<option value="captcha"'.     is_selected('captcha',        $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['captcha'].'</option>'.LF;
 726          echo '<option value="captchaimg"'.    is_selected('captchaimg',     $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['captchaimg'].'</option>'.LF;
 727          echo '<option value="mathspam"'.    is_selected('mathspam',     $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['mathspam'].'</option>'.LF;
 728          echo '<option value="submit"'.         is_selected('submit',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['submit'].'</option>'.LF;
 729          echo '<option value="reset"'.         is_selected('reset',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['reset'].'</option>'.LF;
 730          echo '<option value="break"'.         is_selected('break',         $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['break'].'</option>'.LF;
 731          echo '<option value="breaktext"'.     is_selected('breaktext',    $content['form']["fields"][$key]['type'], 0, 0) .'>'.$BL['be_cnt_field']['breaktext'].'</option>'.LF;
 732          echo '</select></td>';
 733          
 734          echo '<td><input type="text" name="cform_field_name['.$field_counter.']" class="v10" style="width:120px;" value="';
 735          echo html_entities($content['form']["fields"][$key]['name']).'"></td>'.LF;
 736          echo '<td><input type="text" name="cform_field_label['.$field_counter.']" class="v10" style="width:120px;" value="';
 737          echo html_entities($content['form']["fields"][$key]['label']).'"></td>'.LF;
 738          echo '<td><input type="text" name="cform_field_size['.$field_counter.']" class="v10" style="width:40px;" value="';
 739          echo html_entities($content['form']["fields"][$key]['size']).'"title="SIZE for Text/COLUMNS for Textarea"></td>'.LF;
 740          echo '<td><input type="text" name="cform_field_max['.$field_counter.']" class="v10" style="width:40px;" value="';
 741          echo html_entities($content['form']["fields"][$key]['max']).'" title="MAXLENGTH for Text/ROWS for Textarea and List"></td>'.LF;
 742          echo '<td><input type="checkbox" name="cform_field_required['.$field_counter.']"';
 743          echo is_checked('1', $content['form']["fields"][$key]['required'], 0, 0).' value="1" title="'.$BL['be_cnt_mark_as_req'].'"></td>'.LF;
 744          echo '<td><input type="checkbox" name="cform_field_delete['.$field_counter.']" value="1" title="'.$BL['be_cnt_mark_as_del'].'"></td>';
 745          echo "\n</tr>\n";
 746          
 747          
 748          echo '<tr'.$field_bg.' id="formRow_'.$field_counter.'_1"><td>&nbsp;</td>';
 749          echo '<td valign="top"><table summary="" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td valign="top">';
 750          echo '<img src="img/leer.gif" width="3" height="17" alt="" />';
 751          if($field_counter != 1) {
 752              echo '<a href="#" onclick="document.articlecontent.cform_order_'.$field_counter.'.value=\'';
 753              echo ($field_counter-1).'\';document.articlecontent.cform_order_'.($field_counter-1);
 754              echo '.value=\''.$field_counter.'\';document.articlecontent.submit();return false;">';
 755              echo '<img src="img/button/sort_top_1.gif" border="0" alt="" width="11" height="11" />';
 756              echo '</a>';
 757          } else {
 758              echo '<img src="img/button/sort_top_0.gif" border="0" alt="" width="11" height="11" />';
 759          } 
 760          echo '<img src="img/leer.gif" width="1" height="1" alt="" />';
 761          if($field_max != $field_counter) {
 762              echo '<a href="#" onclick="document.articlecontent.cform_order_'.$field_counter.'.value=\'';
 763              echo ($field_counter+1).'\';document.articlecontent.cform_order_'.($field_counter+1);
 764              echo '.value=\''.$field_counter.'\';document.articlecontent.submit();return false;">';
 765              echo '<img src="img/button/sort_bottom_1.gif" border="0" alt="" width="11" height="11" />';
 766              echo '</a>';
 767          } else {
 768              echo '<img src="img/button/sort_bottom_0.gif" border="0" alt="" width="11" height="11" />';
 769          } 
 770          echo '<input type="hidden" name="cform_order['.$field_counter.']" id="cform_order_'.$field_counter.'" value="'.$field_counter.'">';
 771          echo '</td><td class="chatlist" align="right" valign="top"><a name="field_value_'.$field_counter.'"></a>';
 772          echo '<img src="img/leer.gif" width="1" height="15" alt="" />'.$BL['be_cnt_value'].':&nbsp;';
 773          echo "</td></tr>";
 774          // Show "sign up for reCAPCHA API key"
 775          if($content['form']["fields"][$key]['type'] == 'recaptcha') {
 776              include_once  (PHPWCMS_ROOT.'/include/inc_ext/recaptcha/recaptchalib.php');            
 777              echo '<tr><td colspan="2" class="chatlist" style="padding:10px 5px 0 3px"><a href="'.recaptcha_get_signup_url($phpwcms['parse_url']['host'], 'phpwcms').'" target="_blank">'.$BL['be_cnt_field']['recaptcha_signapikey'].'</a></td></tr>';    
 778          }
 779          echo "</table></td>\n";
 780          
 781          echo '<td colspan="4"><textarea name="cform_field_value['.$field_counter.']" ';
 782          echo 'id="cform_field_value_'.$field_counter.'" rows="5" class="code" style="font-size:11px;width:323px;">';
 783          echo html_entities($content['form']["fields"][$key]['value']).'</textarea>';
 784      
 785          echo '</td>';
 786          echo '<td colspan="2" valign="bottom"><div style="padding:2px"><a href="#field_value_'.$field_counter.'" ';
 787          echo "onclick=\"contractField('cform_field_value_".$field_counter."', 'V')\">";
 788          echo '<img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11"></a><br />';
 789          echo '<a href="#field_value_'.$field_counter.'" ';
 790          echo "onclick=\"growField('cform_field_value_".$field_counter."', 'V')\">";
 791          echo '<img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11"></a></div></td>';        
 792          echo '</tr>'.LF;
 793  
 794          echo '<tr'.$field_bg.' id="formRow_'.$field_counter.'_2">';
 795          echo '<td colspan="2" class="chatlist" align="right">&nbsp;'.$BL['be_cnt_error_text'].':&nbsp;</td>';
 796          echo '<td colspan="6"><input type="text" name="cform_field_error['.$field_counter.']" value="';
 797          echo  html_entities($content['form']["fields"][$key]['error']).'" class="v10" style="width:323px;"';
 798          if($content['form']["fields"][$key]['type'] == 'upload') {
 799              echo ' title="{MAXLENGTH}, {FILESIZE}, {FILENAME}, {FILEEXT}"';
 800          }
 801          echo '></td>'.LF.'</tr>'.LF.'<tr'.$field_bg.' id="formRow_'.$field_counter.'_3">';
 802          echo '<td colspan="2" class="chatlist" align="right">&nbsp;'.$BL['be_cnt_css_class'].':&nbsp;</td>';
 803          echo '<td><input type="text" name="cform_field_class['.$field_counter.']" value="';
 804          echo  html_entities($content['form']["fields"][$key]['class']).'" class="v10" style="width:120px;"></td>'.LF;
 805          echo '<td colspan="5"><table summary="" cellpadding="0" cellspacing="0" border="0" style="width:202px;"><tr>
 806               <td class="chatlist" style="width:82px;" align="right">&nbsp;'.$BL['be_cnt_css_style'].':&nbsp;</td>
 807               <td style="width:120px;"><input type="text" name="cform_field_style['.$field_counter.']" value="';
 808          echo html_entities($content['form']["fields"][$key]['style']).'" class="v10" style="width:120px;"></td></tr></table></td>';
 809          
 810          echo "\n</tr>\n";
 811          
 812          // if field row 4 
 813          echo $field_row4;
 814          
 815          echo '<tr bgcolor="#DAE4ED"><td colspan="8"><img src="img/leer.gif" width="1" height="1" alt="" /></td></tr>';
 816          
 817          
 818          // generate javascript code part 2
 819          $field_js['showAll'][$key] .= ');';
 820          $field_js['hideAll'][$key] .= ');';
 821  
 822          $field_counter++;
 823      }
 824  
 825  }
 826  
 827  ?>
 828  <tr bgcolor="#E7E8EB">
 829      <td>&nbsp;</td>
 830      <td><select name="cform_field_type[0]" class="v10" style="width:140px" onchange="setFieldValue(this);">
 831      <option value="text"><?php echo $BL['be_cnt_field']['text'] ?></option>
 832      <option value="textarea"><?php echo $BL['be_cnt_field']['textarea'] ?></option>
 833      <option value="special"><?php echo $BL['be_cnt_field']['special'] ?></option>
 834      <option value="hidden"><?php echo $BL['be_cnt_field']['hidden'] ?></option>
 835      <option value="password"><?php echo $BL['be_cnt_field']['password'] ?></option>
 836      <option value="email"><?php echo $BL['be_cnt_field']['email'] ?></option>
 837      <option value="selectemail"><?php echo $BL['be_cnt_field']['selectemail'] ?></option>
 838      <option value="select"><?php echo $BL['be_cnt_field']['select'] ?></option>
 839      <option value="country"><?php echo $BL['be_cnt_field']['country'] ?></option>
 840      <option value="list"><?php echo $BL['be_cnt_field']['list'] ?></option>
 841      <?php    if(empty($for_newsletter)):    ?>
 842      <option value="newsletter"><?php echo $BL['be_cnt_field']['newsletter'] ?></option>
 843      <?php    endif;    ?>
 844      <option value="checkbox"><?php echo $BL['be_cnt_field']['checkbox'] ?></option>
 845      <option value="radio"><?php echo $BL['be_cnt_field']['radio'] ?></option>
 846      <option value="upload"><?php echo $BL['be_cnt_field']['upload'] ?></option>
 847      <?php    if(!defined('RECAPTCHA_API_SERVER')):    ?>
 848      <option value="recaptcha"><?php echo $BL['be_cnt_field']['recaptcha'] ?></option>
 849      <?php    endif;    ?>
 850      <option value="captcha"><?php echo $BL['be_cnt_field']['captcha'] ?></option>
 851      <option value="captchaimg"><?php echo $BL['be_cnt_field']['captchaimg'] ?></option>
 852      <option value="mathspam"><?php echo $BL['be_cnt_field']['mathspam'] ?></option>
 853      <option value="submit"><?php echo $BL['be_cnt_field']['submit'] ?></option>
 854      <option value="reset"><?php echo $BL['be_cnt_field']['reset'] ?></option>
 855      <option value="break"><?php echo $BL['be_cnt_field']['break'] ?></option>
 856      <option value="breaktext"><?php echo $BL['be_cnt_field']['breaktext'] ?></option>
 857      </select></td>
 858      <td><input type="text" name="cform_field_name[0]" class="v10" style="width:120px;" /></td>    
 859      <td><input type="text" name="cform_field_label[0]" class="v10" style="width:120px;" /></td>
 860      <td><input type="text" name="cform_field_size[0]" class="v10" style="width:40px;" title="SIZE for Text/COLUMNS for Textarea" /></td>
 861      <td><input type="text" name="cform_field_max[0]" class="v10" style="width:40px;" title="MAXLENGTH for Text/ROWS for Textarea and List" /></td>
 862      <td><input type="checkbox" name="cform_field_required[0]" value="1" title="mark as required field" /></td>
 863      <td>&nbsp;
 864        <input type="hidden" name="cform_order[0]" value="<?php echo $field_counter?>" /></td>
 865  </tr>
 866  <tr bgcolor="#E7E8EB">
 867      <td colspan="2" class="chatlist" valign="top" align="right"><a name="field_value_0" id="field_value_0"></a>&nbsp;<img src="img/leer.gif" alt="" width="1" height="15" /><?php echo $BL['be_cnt_value'] ?>:&nbsp;</td>
 868      <td colspan="4"><textarea name="cform_field_value[0]" id="cform_field_value_0" rows="5" class="code" style="font-size:11px;width:323px;"></textarea></td>
 869      <td colspan="2" valign="bottom"><div style="padding:2px"><a href="#field_value_0" onclick="contractField('cform_field_value_0', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11" /></a><br />
 870        <a href="#field_value_0" onclick="growField('cform_field_value_0', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11" /></a></div></td>
 871  </tr>
 872  <tr bgcolor="#E7E8EB">
 873      <td colspan="2" class="chatlist" align="right">&nbsp;<?php echo $BL['be_cnt_error_text'] ?>:&nbsp;</td>
 874      <td colspan="6"><input type="text" name="cform_field_error[0]" class="v10" style="width:323px;" /></td>
 875  </tr>
 876  <tr bgcolor="#E7E8EB">
 877      <td colspan="2" class="chatlist" align="right">&nbsp;<?php echo $BL['be_cnt_css_class']    ?>:&nbsp;</td>
 878      <td><input type="text" name="cform_field_class[0]" class="v10" style="width:120px;" /></td>
 879      <td colspan="5"><table summary="" cellpadding="0" cellspacing="0" border="0" style="width:202px;">
 880          <tr>
 881          <td class="chatlist" style="width:82px;" align="right">&nbsp;<?php echo $BL['be_cnt_css_style'] ?>:&nbsp;</td>
 882          <td style="width:120px;"><input type="text" name="cform_field_style[0]" class="v10" style="width:120px;" /></td>
 883          </tr>
 884      </table></td>
 885  </tr>
 886  <tr bgcolor="#DAE4ED"><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 887  <tr><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr>
 888  <tr><td colspan="2">&nbsp;</td><td colspan="6"><input type="submit" value="<?php echo $BL['be_article_cnt_button1'] ?>" class="v09" /></td></tr>
 889  
 890  </table><?php
 891  
 892  if(!empty($field_counter) && $field_counter > 1) {
 893      
 894      echo '<script language="javascript" type="text/javascript">'.LF.'<!--'.LF;
 895      
 896      echo 'function hideAllFormFields() {'.LF;
 897      echo implode(LF, $field_js['hideAll']);
 898      echo LF.'}'.LF;
 899      
 900      echo 'function showAllFormFields() {'.LF;
 901      echo implode(LF, $field_js['showAll']);
 902      echo LF.'}'.LF.LF;
 903      
 904      echo 'hideAllFormFields();'.LF.LF;
 905      
 906      
 907      // set options lists
 908      if($content['form']["saveprofile"]) {
 909      
 910          $field_js['options'] = '';
 911          foreach($content['profile_fields_varchar'] as $fieldKey => $fieldValue) {
 912              $field_js['options'] .= '<"+"option value=\"'.$fieldKey.'\">'.$fieldValue.'<"+"/option>';
 913          }
 914          
 915          foreach($field_js['varcharFields'] as $tdID => $tdIDvalue) {
 916          
 917              $field_value  = 'document.getElementById("cform_field_profile_'.$tdID.'_td").innerHTML = "';
 918              $field_value .= '<"+"select name=\"cform_field_profile['.$tdID.']\" id=\"cform_field_profile_'.$tdID.'\" class=\"v10\">';
 919              $field_value .= '<"+"option value=\"\">-<"+"/option>';
 920              $field_value .= $tdIDvalue;
 921              $field_value .= $field_js['options'];
 922              $field_value .= '<"+"/select>";'.LF;
 923              
 924              echo $field_value;
 925          
 926          }
 927          
 928          $field_js['options'] = '';
 929          foreach($content['profile_fields_longtext'] as $fieldKey => $fieldValue) {
 930              $field_js['options'] .= '<"+"option value=\"'.$fieldKey.'\">'.$fieldValue.'<"+"/option>';
 931          }
 932          
 933          foreach($field_js['longtextFields'] as $tdID => $tdIDvalue) {
 934          
 935              $field_value  = 'document.getElementById("cform_field_profile_'.$tdID.'_td").innerHTML = "';
 936              $field_value .= '<"+"select name=\"cform_field_profile['.$tdID.']\" id=\"cform_field_profile_'.$tdID.'\" class=\"v10\">';
 937              $field_value .= '<"+"option value=\"\">-<"+"/option>';
 938              $field_value .= $tdIDvalue;
 939              $field_value .= $field_js['options'];
 940              $field_value .= '<"+"/select>";'.LF;
 941              
 942              echo $field_value;
 943          
 944          }
 945          
 946          
 947      
 948      }
 949      
 950      
 951      echo '//-->'.LF.'</script>';
 952  }
 953  
 954  ?></td>
 955  </tr>
 956  
 957  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 958  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
 959  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 960  
 961  <tr><td class="chatlist" colspan="2">
 962      <a name="anchor_template" id="anchor_template"></a>
 963      <?php echo $BL['be_cnt_recipient'].' - '.$BL['be_admin_struct_template'] ?>:&nbsp;
 964      </td></tr>
 965  <tr>
 966      <td colspan="2"><table summary="" cellpadding="0" cellspacing="0" border="0" bgcolor="#E7E8EB" style="margin-top:3px;">
 967          <tr>
 968          <td><input type="radio" name="cform_template_format" id="cform_template_text" value="0"<?php is_checked('0', $content['form']["template_format"]) ?> onchange="this.form.submit();" /></td>
 969          <td class="f10"><label for="cform_template_text">TEXT&nbsp;&nbsp;</label></td>
 970          <td><input type="radio" name="cform_template_format" id="cform_template_html" value="1"<?php is_checked('1', $content['form']["template_format"]) ?> onchange="this.form.submit();" /></td>
 971          <td class="f10"><label for="cform_template_html">HTML&nbsp;</label></td>
 972          <?php
 973          if(!$content['form']["template_format"] && $for_select != '') {
 974              echo '<td style="padding:2px;"><select name="ph" id="ph" class="v10 width200" ';
 975              echo 'onChange="insertAtCursorPos(document.articlecontent.cform_template, ';
 976              echo 'document.articlecontent.ph.options[document.articlecontent.ph.selectedIndex].value);">';
 977              echo $for_select;
 978              echo '<option value="{FORM_URL}">{FORM_URL}</option>'.LF;
 979              echo '<option value="{REMOTE_IP}">{REMOTE_IP}</option>'.LF;
 980              echo '<option value="{DATE:y/m/d H:i:s}">{DATE:y/m/d H:i:s}</option>'.LF;
 981              echo '</select></td>';
 982              echo '<td><img src="img/button/go04.gif" width="15" height="15" title="insert field placeholder" border="0" ';
 983              echo 'onclick="insertAtCursorPos(document.articlecontent.cform_template, ';
 984              echo 'document.articlecontent.ph.options[document.articlecontent.ph.selectedIndex].value);" style="margin:3px;" alt="" /></td>';
 985          }
 986          ?>
 987          </tr>
 988      </table></td>
 989  </tr>
 990  
 991  
 992  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr>
 993  
 994  
 995  <tr>
 996      <td colspan="2"><?php
 997  if($content['form']["template_format"]) {
 998      $wysiwyg_editor = array(
 999          'value'        => $content['form']["template"],
1000          'field'        => 'cform_template',
1001          'height'    => '350px',
1002          'width'        => '536px',
1003          'rows'        => '15',
1004          'editor'    => $_SESSION["WYSIWYG_EDITOR"],
1005          'lang'        => 'en'
1006      );
1007      include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php');
1008  } else {
1009  
1010      echo '<textarea name="cform_template" id="cform_template" rows="5" class="code" style="width:536px;" ';
1011      echo 'onselect="setCursorPos(this);" onclick="setCursorPos(this);" onkeyup="setCursorPos(this);">';
1012      echo html_entities($content['form']["template"]).'</textarea>';
1013      ?>
1014      <div style="text-align:right;padding:2px;padding-right:5px;">
1015      <a href="#anchor_template" onclick="contractField('cform_template', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11" /></a><a href="#anchor_template" onclick="growField('cform_template', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11" /></a>
1016      </div>
1017      <?php
1018  }
1019  
1020  ?></td>
1021  </tr>
1022  
1023  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
1024  
1025  <tr>
1026      <td align="right" class="chatlist"><?php echo $BL['php_function']?>:&nbsp;</td>
1027      <td><input name="cform_function_to" type="text" id="cform_function_to" class="v11 width200" value="<?php echo html_entities($content['form']['function_to']) ?>" size="40" /></td>
1028  </tr>
1029  
1030  <!-- copy mail template //-->
1031  
1032  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
1033  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
1034  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
1035  
1036  <tr>
1037      <td class="chatlist" colspan="2">
1038      <a name="anchor_template_copy" id="anchor_template_copy"></a>
1039      <?php echo $BL['be_cnt_send_copy_to'].' - '.$BL['be_admin_struct_template'] ?>:&nbsp;
1040      </td>
1041  </tr>
1042  <tr>
1043      <td colspan="2" class="tdtop3"><table summary="" cellpadding="0" cellspacing="0" border="0" bgcolor="#E7E8EB">
1044      
1045          <tr>
1046              <td><input type="checkbox" name="cform_template_equal" id="cform_template_equal" value="1"<?php is_checked(1, $content['form']["template_equal"]) ?> onchange="showhidecopy()" /></td>
1047              <td class="v10"><label for="cform_template_equal">&nbsp;= <?php echo $BL['be_cnt_recipient'].' - '.$BL['be_admin_struct_template'] ?>&nbsp;&nbsp;</label></td>
1048          </tr>
1049  
1050      </table><script type="text/javascript">
1051      <!--
1052  
1053      function showhidecopy() {
1054      
1055          var tcopy = $('cform_template_equal').checked;
1056          
1057          if(tcopy) {
1058          
1059              $('copytemplate1').setStyle('display', 'none');
1060              $('copytemplate2').setStyle('display', 'none');
1061              $('copytemplate3').setStyle('display', 'none');
1062          
1063          } else {
1064          
1065              $('copytemplate1').setStyle('display', '');
1066              $('copytemplate2').setStyle('display', '');
1067              $('copytemplate3').setStyle('display', '');
1068          
1069          }
1070      
1071      }
1072      
1073      window.addEvent('domready', function() {
1074          
1075          showhidecopy();
1076          
1077      });
1078      
1079      //-->
1080      </script></td>
1081  </tr>
1082  <tr id="copytemplate1">
1083      <td colspan="2" class="tdtop3"><table summary="" cellpadding="0" cellspacing="0" border="0" bgcolor="#E7E8EB">
1084          <tr>
1085          <td><input type="radio" name="cform_template_format_copy" id="cform_template_text_copy" value="0"<?php is_checked(0, $content['form']["template_format_copy"]) ?> onchange="this.form.submit();" /></td>
1086          <td class="f10"><label for="cform_template_text_copy">TEXT&nbsp;&nbsp;</label></td>
1087          <td><input type="radio" name="cform_template_format_copy" id="cform_template_html_copy" value="1"<?php is_checked(1, $content['form']["template_format_copy"]) ?> onchange="this.form.submit();" /></td>
1088          <td class="f10"><label for="cform_template_html_copy">HTML&nbsp;</label></td>
1089          <?php
1090          if(!$content['form']["template_format_copy"] && $for_select != '') {
1091              echo '<td style="padding:2px;"><select name="phc" id="phc" class="v10 width200" ';
1092              echo 'onchange="insertAtCursorPos(document.articlecontent.cform_template_copy, ';
1093              echo 'document.articlecontent.phc.options[document.articlecontent.phc.selectedIndex].value);">';
1094              echo $for_select;
1095              echo '<option value="{FORM_URL}">{FORM_URL}</option>'.LF;
1096              echo '<option value="{REMOTE_IP}">{REMOTE_IP}</option>'.LF;
1097              echo '<option value="{DATE:y/m/d H:i:s}">{DATE:y/m/d H:i:s}</option>'.LF;
1098              echo '</select></td>';
1099              echo '<td><img src="img/button/go04.gif" width="15" height="15" title="insert field placeholder" border="0" ';
1100              echo 'onclick="insertAtCursorPos(document.articlecontent.cform_template_copy, ';
1101              echo 'document.articlecontent.phc.options[document.articlecontent.phc.selectedIndex].value);" style="margin:3px;" alt="" /></td>';
1102          }
1103          ?>
1104          </tr>
1105      </table></td>
1106  </tr>
1107  
1108  <tr id="copytemplate2"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr>
1109  
1110  <tr id="copytemplate3">
1111      <td colspan="2"><?php
1112  if($content['form']["template_format_copy"]) {
1113      $wysiwyg_editor = array(
1114          'value'        => $content['form']["template_copy"],
1115          'field'        => 'cform_template_copy',
1116          'height'    => '350px',
1117          'width'        => '536px',
1118          'rows'        => '15',
1119          'editor'    => $_SESSION["WYSIWYG_EDITOR"],
1120          'lang'        => 'en'
1121      );
1122      include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php');
1123  } else {
1124  
1125      echo '<textarea name="cform_template_copy" id="cform_template_copy" rows="5" class="code" style="width:536px;" ';
1126      echo 'onselect="setCursorPos(this);" onclick="setCursorPos(this);" onkeyup="setCursorPos(this);">';
1127      echo html_entities($content['form']["template_copy"]).'</textarea>';
1128      ?>
1129      <div style="text-align:right;padding:2px;padding-right:5px;">
1130      <a href="#anchor_template_copy" onclick="contractField('cform_template_copy', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11" /></a><a href="#anchor_template_copy" onclick="growField('cform_template_copy', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11" /></a>
1131      </div>
1132      <?php
1133  }
1134  
1135  ?></td>
1136  </tr>
1137  
1138  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
1139  
1140  <tr>
1141      <td align="right" class="chatlist"><?php echo $BL['php_function']?>:&nbsp;</td>
1142      <td><input name="cform_function_cc" type="text" id="cform_function_cc" class="v11 width200" value="<?php echo html_entities($content['form']['function_cc']) ?>" size="40" /></td>
1143  </tr>
1144  
1145  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
1146  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
1147  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
1148  
1149  <tr>
1150      <td class="chatlist" colspan="2" style="padding-bottom:3px;"><a name="anchor_customform" id="anchor_customform"></a><?php echo $BL['be_admin_struct_template'] ?>:&nbsp;</td>
1151  </tr>
1152  <?php
1153       
1154  if($for_select_2 != '') {
1155      echo '<tr><td colspan="2"><table summary="" cellpadding="0" cellspacing="0" border="0" bgcolor="#E7E8EB"><tr><td style="padding:2px;">';
1156      echo '<select name="ph1" id="ph1" class="v10 width200" ';
1157      echo 'onChange="insertAtCursorPos(document.articlecontent.cform_customform, ';
1158      echo 'document.articlecontent.ph1.options[document.articlecontent.ph1.selectedIndex].value);">';
1159      echo $for_select_2.'</select></td>';
1160      echo '<td><img src="img/button/go04.gif" width="15" height="15" title="insert field placeholder" border="0" ';
1161      echo 'onclick="insertAtCursorPos(document.articlecontent.cform_customform, ';
1162      echo 'document.articlecontent.ph1.options[document.articlecontent.ph1.selectedIndex].value);" style="margin:3px;" alt="" />';
1163      echo '</td></tr></table></td></tr>';
1164  }
1165  
1166  ?>
1167  
1168  <tr>
1169      <td colspan="2">
1170      <textarea name="cform_customform" id="cform_customform" rows="5" class="code" style="width:536px;" onselect="setCursorPos(this);" onclick="setCursorPos(this);" onkeyup="setCursorPos(this);"><?php echo html_entities($content['form']["customform"]) ?></textarea>
1171      <div style="text-align:right;padding:2px;padding-right:5px;">
1172      <a href="#anchor_customform" onclick="contractField('cform_customform', 'V')"><img src="img/button/minus_11x11.gif" border="0" alt="-" width="11" height="11" /></a><a href="#anchor_customform" onclick="growField('cform_customform', 'V')"><img src="img/button/add_11x11.gif" border="0" alt="+" width="11" height="11" /></a>    </div>
1173      </td>
1174  </tr>
1175  
1176  
1177  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
1178  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
1179  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7