CMS MADE SIMPLE FORGE

CGCalendar

 

[#6424] Add Custom Fields to the admin_events_tab.tpl

avatar
Created By: Mark Glass (dmgd)
Date Submitted: 2011-04-23 17:13

Assigned To: Robert Campbell (calguy1000)
Resolution: Won't Fix
State: Closed
Summary:
Add Custom Fields to the admin_events_tab.tpl
Detailed Description:
I modified function.admindisplaymanageevents.php after line 127 and got a list
of custom fields.  This gets {$one.fields.fieldname}

I'm sorry if this should not be here.  Delete the post if it should not have
been added.  The code could have been cleaner.

// add get field info
$qry = "SELECT  *  FROM ". $mod->event_field_values_table_name . " WHERE
event_id=".$row['event_id'];
$flds = $db->Execute($qry);
$myfields = array();
  if ($flds && $flds->RecordCount() > 0)
	{
	while( $fldrow = $flds->FetchRow() )
		{
			$myfields[] = $fldrow['field_name'];
			$myfields[$fldrow['field_name']] = $fldrow['field_value'];
		}
	}else{
		$myfields[] = 'NO FIELDS';  // Debug
		}
	$myflds->Close;
	  $row['fields'] = $myfields;
// END add get fields

History

Comments
avatar
Date: 2015-01-30 00:03
Posted By: Robert Campbell (calguy1000)

now using fullcalendar.
      
Updates

Updated: 2015-01-30 00:03
resolution_id: => 8
state: Open => Closed