Exemple #1
0
?>
" />
               <input type='text' name="<?php 
echo generateNewIdAtDay("AREA");
?>
" value="<?php 
echo $bagCheckInfo->getArea();
?>
" />
            </td>
        </tr>
        <tr>
        	<td>Note</td>
        	<td>        	
				<input type="hidden" name="<?php 
echo generateOldIdAtDay("NOTE");
?>
" value="<?php 
echo $bagCheckInfo->getNote();
?>
" />
        		<textarea class='bc_note' name="<?php 
echo generateNewIdAtDay("NOTE");
?>
"><?php 
echo $bagCheckInfo->getNote();
?>
</textarea>
        	</td>
        </tr>
    </tbody>
function bagCheckUpdateDayInformation($bagCheckInfo)
{
    $oldAreaLabel = generateOldIdAtDay("AREA");
    $oldArea = $_POST[$oldAreaLabel];
    $newAreaLabel = generateNewIdAtDay("AREA");
    $newArea = $_POST[$newAreaLabel];
    if ($oldArea != $newArea) {
        $bagCheckInfo->setArea($newArea);
    }
    $oldNoteLabel = generateOldIdAtDay("NOTE");
    $oldNote = $_POST[$oldNoteLabel];
    $newNoteLabel = generateNewIdAtDay("NOTE");
    $newNote = $_POST[$newNoteLabel];
    if ($oldNote != $newNote) {
        $bagCheckInfo->setNote($newNote);
    }
}