Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Placing form variables below label

Placing form variables below label 15 years 10 months ago #3417

  • Ducati
  • Ducati's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello,

How would I get the form variables to display the label and allow the label to go full width with the custom fields?

Thanks,

C.J.

Please Log in or Create an account to join the conversation.

Placing form variables below label 15 years 10 months ago #3419

  • Ducati
  • Ducati's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Ok, with my limited hacking skills, this is what I came up with. In your dtregister.php look around line 3939 to 4066, compare and make the changes.

<table> <tr><td colspan=\"2\"><hr></td></tr> <tr><td colspan=\"2\" ><strong><?php echo DT_ADDITIONAL_INFORMATION;?></strong></td> <?php /* for($i=0;$i<$n;$i++) { $rowCustom=$rowCustoms[$i]; ?> <tr><td><?php echo $rowCustom->label?>:</td><td><input type=\"text\" class=\"inputbox\" name=\"<?php echo $rowCustom->name?>\" size=\"<?php echo $rowCustom->field_size?>\"></td></tr> <?php } */ for($i=0,$n=count($rowCustoms);$i<$n;$i++) { $rowCustom=$rowCustoms[$i]; if($_SESSION[\'register\'][\'reg_type\'] == \'reg_individual\'){ }else{ if($rowCustom->group_behave==\'1\'){ continue; } } ?> <tr> <td width=\"100%\" align=\"left\" valign=\"top\"> <strong><?php echo stripslashes($rowCustom->label); ?>: </strong> <?php if($rowCustom->required){echo \"<span class=\'required\'>[code]<table>
<tr><td colspan=\"2\"><hr></td></tr>

<tr><td colspan=\"2\" ><strong><?php echo DT_ADDITIONAL_INFORMATION;?></strong></td>

<?php

/*

for($i=0;$i<$n;$i++)

{

$rowCustom=$rowCustoms[$i];

?>

<tr><td><?php echo $rowCustom->label?>:</td><td><input type=\"text\" class=\"inputbox\" name=\"<?php echo $rowCustom->name?>\" size=\"<?php echo $rowCustom->field_size?>\"></td></tr>

<?php

}

*/

for($i=0,$n=count($rowCustoms);$i<$n;$i++)

{
$rowCustom=$rowCustoms[$i];

if($_SESSION[\'register\'][\'reg_type\'] == \'reg_individual\'){

}else{

if($rowCustom->group_behave==\'1\'){

continue;

}

}

?>

<tr>

<td width=\"100%\" align=\"left\" valign=\"top\">

<strong><?php echo stripslashes($rowCustom->label); ?>:
</strong>
<?php if($rowCustom->required){echo \"<span class=\'required\'>

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 1.706 seconds