コード例 #1
0
?>
            <?php 
echo form_upload('survey_file', '', 'id="survey_file"' . $disabled_def_file);
?>
            <?php 
echo form_error('survey_file');
?>
          </div>
        </fieldset>
        <fieldset class="contained">
          <div class="form-control">
            <?php 
echo form_label('Survey introduction', 'survey_introduction');
?>
            <?php 
echo form_textarea('survey_introduction', set_value('survey_introduction', property_if_not_null($survey, 'introduction')), 'id="survey_introduction"' . $disabled_metadata);
?>
            <p class="help-text">This introduction will be read by the agents to the respondents before proceeding with the actual survey questions.</p>
            <?php 
echo form_error('survey_introduction');
?>
          </div>
        </fieldset>
      </div>
      
      <?php 
echo form_button(array('type' => 'submit', 'name' => 'survey_submit', 'id' => 'survey_submit', 'value' => 'survey_submit', 'class' => 'hide', 'content' => 'Submit Survey'));
?>
      
      <?php 
echo form_close();
コード例 #2
0
         ?>
           </label>
         <?php 
     }
     ?>
         <?php 
     echo form_error('user_roles');
     ?>
         </div>
         
         <div class="form-control">
         <?php 
     echo form_label('Status', 'user_status');
     ?>
         <?php 
     echo form_dropdown('user_status', User_entity::$statuses, property_if_not_null($user, 'status'), 'id="user_status"');
     ?>
         <?php 
     echo form_error('user_status');
     ?>
         </div>
       <?php 
 }
 ?>
       
     </fieldset>
     
     <?php 
 if ($action == 'add') {
     ?>
     <fieldset class="contained">