Example #1
0
    if (!$Content) {
        echo 'There is no data available...';
    }
}
/* 
	Displays Inline Spell View Data for inline editing as well... 
	Requested via tooltip...
*/
if (isset($_GET['spell_view_data_quick'])) {
    require_once 'includes/spell.inc.php';
    require_once 'includes/constants.php';
    require_once 'includes/alla_functions.php';
    require_once 'modules/ItemEditor/constants_ie.php';
    require_once 'modules/SpellEditor/functions.php';
    $result = mysql_query("SELECT * FROM spells_new WHERE `id` = " . $_GET['spell_view_data_quick'] . ";");
    $columns = mysql_num_fields($result);
    echo '<div style="width:600px;height:700px;overflow-y;scroll">';
    echo '<h4 class="page-title"><i class="fa fa-database"></i> Spell Inline Editor</h4><hR>';
    echo '<table class="table table-hover">';
    echo '<tr>
			<th style="width:200px">Field</th>
			<th>Data</th>
		</tr>';
    for ($i = 0; $i < $columns; $i++) {
        $FieldName = mysql_field_name($result, $i);
        $FieldData = mysql_result($result, 0, $i);
        echo '<tr><td><b>' . $FieldName . '</b><br><small>' . $spells_new_fields[$FieldName][0] . '</small></td><td> ' . SpellFieldInput($_GET['spell_view_data_quick'], $FieldName, $FieldData) . '</td></tr>';
    }
    echo '</table>';
    echo '</div>';
}
Example #2
0
 /*
 	We want to be able to dynamically iterate through any users database so that the editor does not break...
 	The trick is to still make sense of it in code...
 	So we will track with arrays...
 */
 $spell_ef_acf = array();
 /* Will dynamically keep track of called out fields so that any left over from the table can be printed at the end */
 $spell_editor_fields = array();
 /* spell_editor_fields structure 
 			[0] => Actual Input Fields
 			[1] => Description of the Field itself (if it is available of course)
 		*/
 for ($i = 0; $i < $columns; $i++) {
     $FieldName = mysql_field_name($result, $i);
     $FieldData = mysql_result($result, 0, $i);
     $spell_editor_fields[$FieldName] = array(SpellFieldInput($_GET['Edit'], $FieldName, $FieldData), $spells_new_fields[$FieldName][0]);
 }
 // echo '<code>';
 foreach ($layout_map as $key => $val) {
     if ($key == 13) {
         $width = 'width:100%;';
     } else {
         $width = 'width:auto;';
     }
     if ($key == 0) {
         echo SectionHeader('Basics');
     }
     if ($key == 3) {
         echo SectionHeader('Messages');
     }
     if ($key == 4) {