function showStep3($option, $columns, $fields, $rowGlobalFields, $profilerId, $separator, $csv_utf8, $fileName, $rowProfiler, $rowCustomGlobalSettings)
    {
        //		mosCommonHTML::loadOverlib();
        loadCalendar();
        ?>
<form name="adminForm" method="POST" id="adminForm" action="index2.php" enctype="multipart/form-data">
   <table class="csvimport_subheading">
      <tr>
         <td><h1>Step 3: Global Settings for New Content Items </h1>
            <p>For your convenience, you can set basic  display parameters (such as those found in a content item's Parameters tab) for all newly created content items using the options directly below. Additional Joomla and jReviews fields (if applicable) are also available below: choose a field, then specify a value. <strong>The values on this page will be applied to all new content items. </strong></p></td>
      </tr>
   </table>
   <br>
   <p>* Used only if not specified in CSV file.</p>
   <table class="adminform" width="100%">
      <tr>
         <th colspan="2">Basic Joomla Parameters for All New Content Items </th>
      </tr>
      <tr>
         <td nowrap="nowrap"> Author User ID: </td>
         <td width="100%"><input type="text" name="author_id" size="10" value="<?php 
        echo $rowProfiler->author_id;
        ?>
">
            <a href="index3.php?option=com_users&task=view" target="_blank">View User List</a> </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Section ID*: </td>
         <td><input type="text" name="section_id" size="10" value="<?php 
        echo $rowProfiler->section_id;
        ?>
">
            <a href="index3.php?option=com_sections&scope=content" target="_blank">View Section List</a> </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Category ID*: </td>
         <td><input type="text" name="category_id" size="10" value="<?php 
        echo $rowProfiler->category_id;
        ?>
">
            *Used if not specified in CSV file. <a href="index3.php?option=com_categories&section=content" target="_blank">View Category List</a></td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Published: </td>
         <td><select name="state">
               <option value="1" <?php 
        if ($rowProfiler->state) {
            echo "selected";
        }
        ?>
>Yes</option>
               <option value="0" <?php 
        if (!$rowProfiler->state) {
            echo "selected";
        }
        ?>
>No</option>
            </select>
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Meta Keywords*: </td>
         <td><input type="text" name="meta_keys" size="50" value="<?php 
        echo $rowProfiler->meta_keys;
        ?>
">
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Meta Description*: </td>
         <td><input type="text" name="meta_des" size="50" value="<?php 
        echo $rowProfiler->meta_des;
        ?>
">
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Created Date*:</td>        
         <td><?php 
        echo cmsCompat::calendar($rowProfiler->created_date, 'created_date', 'created_date', '%Y-%m-%d', 'textarea');
        ?>
</td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Publish Start Date*: </td>
         <td><?php 
        echo cmsCompat::calendar($rowProfiler->publish_up_date, 'publish_up_date', 'publish_up_date', '%Y-%m-%d', 'textarea');
        ?>
</td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Publish End Date*: </td>
         <td><?php 
        echo cmsCompat::calendar($rowProfiler->publish_down_date, 'publish_down_date', 'publish_down_date', '%Y-%m-%d', 'textarea');
        ?>
</td>
      </tr>
      <tr>
         <td valign="top" nowrap="nowrap"> Access Level: </td>
         <td><select size="3" class="inputbox" name="access">
               <option <?php 
        if ($rowProfiler->access_level == 0) {
            echo "selected";
        }
        ?>
 value="0">Public</option>
               <option <?php 
        if ($rowProfiler->access_level == 1) {
            echo "selected";
        }
        ?>
 value="1">Registered</option>
               <option <?php 
        if ($rowProfiler->access_level == 2) {
            echo "selected";
        }
        ?>
 value="2">Special</option>
            </select>
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Back Button: </td>
         <td><select class="inputbox" name="params[back_button]">
               <option selected="selected" value="">Use Global</option>
               <option value="0">Hide</option>
               <option value="1">Show</option>
            </select>
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Author Names: </td>
         <td><select class="inputbox" name="params[author]">
               <option selected="selected" value="">Use Global</option>
               <option value="0">Hide</option>
               <option value="1">Show</option>
            </select>
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Created Date and Time: </td>
         <td><select class="inputbox" name="params[createdate]">
               <option selected="selected" value="">Use Global</option>
               <option value="0">Hide</option>
               <option value="1">Show</option>
            </select>
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Modified Date and Time: </td>
         <td><select class="inputbox" name="params[modifydate]">
               <option selected="selected" value="">Use Global</option>
               <option value="0">Hide</option>
               <option value="1">Show</option>
            </select>
         </td>
      </tr>
      <tr>
         <td nowrap="nowrap"> Default Image: </td>
         <td><input type="file" name="default_image" size="50" />
         </td>
      </tr>
      <tr>
         <th colspan="2">Set global default values for up to 15 custom fields</th>
      </tr>
      <tr>
         <td colspan="2" class="container"><table>
               <tr>
                  <td nowrap="nowrap"><strong>For this field...</strong> </td>
                  <td nowrap="nowrap">&nbsp;</td>
                  <td width="100%" nowrap="nowrap"><strong>Set value to...</strong> </td>
               </tr>
               <?php 
        $n = count($rowGlobalFields);
        for ($i = 0; $i < 15; $i++) {
            if (count($rowGlobalFields) - 1 < $i) {
                break;
            }
            $rowGlobal = $rowGlobalFields[$i];
            $customField = "";
            $customValue = "";
            if ($rowCustomGlobalSettings) {
                if ($i < count($rowCustomGlobalSettings)) {
                    $rowCustomGlobalSetting = $rowCustomGlobalSettings[$i];
                    $customField = $rowCustomGlobalSetting->field_name;
                    $customValue = $rowCustomGlobalSetting->field_value;
                }
            }
            ?>
               <tr>
                  <td><select name="global_columns[]" id="field_<?php 
            echo $i;
            ?>
" style="width:250px;">
                        <optgroup label="jos_jreviews_fields">
                        <?php 
            for ($j = 0; $j < $n; $j++) {
                $rowCurrent = $rowGlobalFields[$j];
                if ($rowCurrent->name == $customField) {
                    ?>
                        <option value="jos_jreviews_fields.<?php 
                    echo $rowCurrent->name;
                    ?>
" selected>
                        <?php 
                    echo $rowCurrent->name;
                    ?>
                        </option>
                        <?php 
                } else {
                    ?>
                        <option value="jos_jreviews_fields.<?php 
                    echo $rowCurrent->name;
                    ?>
">
                        <?php 
                    echo $rowCurrent->name;
                    ?>
                        </option>
                        <?php 
                }
            }
            ?>
                        </optgroup>
                     </select>
                  </td>
                  <td><img src="components/com_csv_import/arrow.gif" alt="Set to..." /></td>
                  <td><input type="text" name="global_value[]" size="20" value="<?php 
            echo $customValue;
            ?>
" id="global_<?php 
            echo $i;
            ?>
" style="width:250px;" />
                  </td>
               </tr>
               <?php 
        }
        ?>
            </table></td>
      </tr>
   </table>
   <!-- Set hidden variable-->
   <?php 
        for ($i = 0; $i < count($columns); $i++) {
            ?>
   <input type="hidden" name="columns[]" value="<?php 
            echo $columns[$i];
            ?>
">
   <input type="hidden" name="fields[]" value="<?php 
            echo $fields[$i];
            ?>
">
   <?php 
        }
        ?>
   <!-- Other hidden variable-->
   <input type="hidden" name="profiler_id" value="<?php 
        echo $profilerId;
        ?>
" />
   <input type="hidden" name="separator" value="<?php 
        echo $separator;
        ?>
" />
   <input type="hidden" name="csv_utf8" value="<?php 
        echo $csv_utf8;
        ?>
" />   
   <input type="hidden" name="filename" value="<?php 
        echo $fileName;
        ?>
" />
   <input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
   <input type="hidden" name="task" value="" />
</form>
<script language="javascript">
var totalCustomField=<?php 
        echo $n;
        ?>
;
</script>
<?php 
    }
Exemple #2
0
        echo "<br>(" . $oMateria->cantidad . " Horas)";
        ?>
                <?php 
        echo draggable_element('horarioMaterias_' . $idx, array('revert' => true));
        ?>
                <br><br>
                <?php 
    }
}
?>
            </div>
        </td>
        <td>
            <?php 
use_helper("CalendarWeek");
echo loadCalendar($aDay, $aHour, $aEvent, $aDayNames, $time_interval, false, 110, 20);
?>
        </td>
    </tr>
</table>

<script type="text/javascript">
//<![CDATA[
Droppables.add('wastebin', {accept:'horarioMaterias-items', hoverclass:'wastebin-active', onDrop:function(element,dropppableElement){Element.hide(element);
var nombre = element.id.substr(0,element.id.indexOf("_"));
new Ajax.Updater( nombre , 'calendario/remove/name/'+nombre, {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator-wrapper')}, onLoading:function(request, json){Element.show('indicator-wrapper')}, parameters:'id=' + encodeURIComponent(element.id)})}})
//]]>
</script>
<?php 
foreach ($aEvent as $event) {
    echo drop_receiving_element("event" . $event->id, array('update' => 'eventname' . $event->id, 'url' => 'calendario/add?name=eventname' . $event->id, 'accept' => 'horarioMaterias-items', 'hoverclass' => 'horarioMaterias-active', 'loading' => "Element.show('indicator-wrapper')", 'complete' => "Element.hide('indicator-wrapper')", 'script' => 'true'));