?> </a><input name="elemen[<?php echo $i; ?> ][<?php echo $j; ?> ]" type="text" id="elemen<?php echo $i; echo $j; ?> " style="display:none;" onClick="showEdit('<?php echo "ele" . $i . $j; ?> ',this.id);" value="<?php echo showElement($i, $j); ?> " size="5" > </td> <?php } ?> <?php } if ($i == 0) { ?> <td width="48" class="table_head"> </td> <?php } else { ?> <td width="49" class="subhead_gray" align="right"><a href="#" onClick="deleteThis('field_row','<?php echo $i;
<? include('globals.inc.php'); $i=1; echo '<div id="folder_content">'; while ($folder_array= mysql_fetch_assoc($folder_query)) { $element_query= mysql_query('SELECT * FROM tb_element WHERE folder_id='.$folder_array[id].' ORDER BY sort'); $element_count= mysql_num_rows($element_query); echo ' <div class="folder_container"> <div class="folder_insider"> <section class="element_list" id="folder_'.$i.'">'; $a=1; if ($element_count != '0') { while ($element_array= mysql_fetch_assoc($element_query)) { showElement($a,$folder_array[id],$element_array[id]); $a++; } } echo ' <article class="element_container" id="element_container_dummy"'; if ($element_count == '0') echo ' style="display: block;"'; echo '>There is no content in <strong>'.$folder_array[name].'</strong> right now.</article>'; echo ' </section> <div class="clearfix"></div> </div> <div class="folder_icon"><img src="images/layout/folder_icon.png" alt="" /></div> <div class="folder_desc" id="folder_'.$i.'_desc"><h2>'.$folder_array[name].'</h2><p>There are <strong class="element_count">'.$element_count.'</strong> elements in this folder.</p></div> </div>
<? # Load element and build valid box include('../globals.inc.php'); if (isset($_GET['move_to'])) { $folder_id= str_replace('folder_','',$_GET['folder_id']); $element_id= $_GET['element_id']; $move_to= str_replace('folder_','',$_GET['move_to']); $maxSort= mysql_fetch_array(mysql_query('SELECT count(id) FROM tb_element WHERE folder_id='.$move_to.'')); $move= mysql_query('UPDATE tb_element SET folder_id='.$move_to.',sort='.($maxSort['0']+1).' WHERE id='.$element_id.''); $element_query= mysql_query('SELECT * FROM tb_element WHERE folder_id='.$move_to.''); $element_count= mysql_num_rows($element_query); showElement($element_count,$folder_id,$element_id,$move_to); } elseif (isset($_GET['reloadMovementControlls'])) { loadMovementControlls($_GET['folder_id'], $_GET['elementID']); } ?>
" onClick="showEdit(this.id,'<?php echo "elemen" . $i . $j; ?> ');" class="text_gray"> <?php echo wordwrap(showElement($i, $j), 15, "<br>"); ?> </a> <input type="text" name="elemen[<?php echo $i; ?> ][<?php echo $j; ?> ]" value="<?php echo wordwrap(showElement($i, $j), 15, "<br>"); ?> " style="display:none;" onClick="showEdit('<?php echo "ele" . $i . $j; ?> ',this.id);" id="elemen<?php echo $i; echo $j; ?> " size="5"></td> <?php } } ?> </tr> <?php