cal1.manageFields("ApDataIntrare-trigger", "ApDataIntrare", "%d/%m/%Y"); var cal2=Calendar.setup({onSelect:function(){cal1.hide();}}); cal1.manageFields("DataIntrareInPiata-trigger", "OfDataIntrareInPiata", "%d/%m/%Y"); var cal3=Calendar.setup({onSelect:function(){cal1.hide();}}); cal1.manageFields("DataActualizare-trigger", "OfDataActualizare", "%d/%m/%Y"); </script> <fieldset> <legend>Broker</legend> <?php $agentList = User::find_all(); ?> <?php if ($agentIntroducere) { echo put_protected_item($agentIntroducere->full_name(), "adaugat"); } ?> <label class="label">adaugare</label><select class="standard" id="OfidAgentIntroducere" name="OfidAgentIntroducere"> <option value=''> </option> <?php foreach ($agentList as $agentx) { echo "<option value='{$agentx->id}'"; if ($agentx->id == $oferta->idAgentIntroducere) { echo " selected='selected' "; } echo ">{$agentx->full_name()}</option>"; } ?> </select> <label class="label">lucreaza</label><select class="standard" id="OfIdAgentVanzare" name="OfIdAgentVanzare">
cal1.manageFields("ApDataIntrare-trigger", "ApDataIntrare", "%d/%m/%Y"); var cal2=Calendar.setup({onSelect:function(){cal1.hide();}}); cal1.manageFields("DataIntrareInPiata-trigger", "OfDataIntrareInPiata", "%d/%m/%Y"); var cal3=Calendar.setup({onSelect:function(){cal1.hide();}}); cal1.manageFields("DataActualizare-trigger", "OfDataActualizare", "%d/%m/%Y"); </script> <fieldset> <legend>Broker</legend> <?php $agentList = User::find_all(); ?> <?php if ($user) { echo put_protected_item($user->full_name(), "adaugat"); } ?> <?php //if ($user) echo put_protected_item($user->full_name(), "lucreaza"); ?> <label class="label">lucreaza</label><select class="standard" id="OfIdAgentVanzare" name="OfIdAgentVanzare"> <option value=''> </option> <?php foreach ($agentList as $agentx) { echo "<option value='{$agentx->id}'"; if ($user->id == $agentx->id) { echo "selected=\"selected\""; } echo ">{$agentx->full_name()}</option>";