[FX.php List] Editing multiple records

Rob H. Christensen robhelleshoj at tiscali.dk
Thu Aug 10 11:23:05 MDT 2006


Hi,

I knew there was something which is going to complicate the whole
business...

The list contains TWO forms for each record, the way it is now.

The first form links to the jobs main page, the second gives the jobs status
in the list.

This means that I either have to split up the list into two separate pages,
or that I have to find a way to show the two lists side by side with a form
for each record linking to the main job page and a form for all shown
records doing the editing...

I don¹t think a form within a form would work ­ or will it?


tr> 
  <form name='job' method='POST' action="index.php">
    <td class='<?PHP echo $myColor?>'>
        
            <input type='hidden' name='area' value='editJob'>
            <input type="hidden" name...etc
            <input type="submit" name='submit' class='small'value="<?PHP
echo $findTegnerData['Jobnummer'][0];?>">
    </td>
  </form>

    <td  some data displayed </td>
   
    <form name = "listedit" method = "POST" action = "index.php">
    <td class='<?PHP echo $myColor?>'>
                <input type='hidden' name='area' value="ListRespons">
                <input type='hidden' name='JobID' value='<?PHP echo
$findTegnerData['Jobnummer'][0];?>'>
                <input type='hidden' name='Jobidentity' value='<?PHP echo
$findTegnerData['ID'][0];?>'>
                <input type="hidden" name="BRUGER" value="<?PHP echo
$BRUGER;?>">
                <input type="hidden" name="TEKNER" value="<?PHP echo
$TEKNER;?>">
                <select name='Status' class='small'>
                <?PHP $selectvalue=$findTegnerData['Status'][0];
                    foreach($VisListResult['valueLists']['Status'] as
$key=>$value)
                    {
                        if ($selectvalue==$value){ $selected='selected';
}else{$selected=''; } ?>
                        <option value='<?PHP echo $value; ?>'<?PHP echo
$selected;?> ><?PHP echo $value; ?></option><?PHP
                    } ?>
                </select>
        </td>    
        <td class='<?PHP echo $myColor?>'>
            <img src='pics/<?PHP echo $findTegnerData['ShowPrio'][0];
?>'></td>
        <td class='<?PHP echo $myColor?>'>
            <select name='Prioritet' class = 'small'>
            <?PHP $selectvalue=$findTegnerData['Prioritet'][0];
                foreach($VisListResult['valueLists']['Prioritet'] as
$key=>$value){
                if ($selectvalue==$value){ $selected='selected';
}else{$selected=''; } ?>
            <option value='<?PHP echo $value; ?>'<?PHP echo $selected;?>
><?PHP echo $value; ?></option><?PHP } ?>
            </select>
        </td>
        <td class='<?PHP echo $myColor?>' valign='center'>
                  <input type='hidden' name='logOld' value='<?PHP echo
$findTegnerData['Joblog'][0];?>'>
            <input type= "submit" name="submit" class = 'small' value="G">
        </td>
    </form>
   ... Some more displayed data from the record...
  </tr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060810/0eb87c2c/attachment-0001.html


More information about the FX.php_List mailing list