ExData Module v2.8.0 - Tables, Lists and more…

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
intermedion
Posts: 22
Joined: Tue 27. Jun 2006, 00:50

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by intermedion » Thu 27. Dec 2007, 19:30

Does anybody know if this latest version works with wcms 1.3.5?

User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by flip-flop » Thu 27. Dec 2007, 19:56

Yes it does.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )

User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by 360fusion » Tue 8. Jan 2008, 12:53

Hi,

I'm creating a job listing page using ExData and have a few questions.

I am using detailed view with auto template and have created a nice template to display the detialed view but want to be able to chose 3 or 4 fields only rather than all 8 to be displayed in the listing and design the layout myself. I just want to show, job title, job salary, job region and job type (temp, full time, etc.) and have the job title link through to the detailed view.

Is it posible to create a template for displaying the search listings rather than selecting options for fields in Templates - ExData Auto-Templates and categories - Create Replacement Tag?

Also...

In ExData Entries Area is it possible to only display a couple of chosen fileds, i have quite a lot of data and for an admin wanting to edit an entry it is hard to find as there will be a lot of pages. I just want to display job title and location rather than all the details especially the job description.

Also...

In ExData Entries Area is it possible to or will it in future releases to sort by seleted fields, for example as i am creating a jobs listing would it be posible to select the field i have created for the job sector and make it filter the data entries and only show jobs in admin or sales. This would make it easier for admins to maintain the data entries. If it is not already i think this would make this great module even better.

Thanks in advance
Ben

breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by breitsch » Tue 8. Jan 2008, 19:36

360fusion wrote:but want to be able to chose 3 or 4 fields only rather than all 8 to be displayed in the listing and design the layout myself.
well, it's html in a template file (mod_exdata/inc_front/template/detail_view.tmpl)

<

Code: Select all

!-- detail view template -->
<table border="0" cellpadding="0" cellspacing="2" width="100%" class="exd_item">
  <tr>
    <td width="256"><strong>{cat}</strong></td>
    <td width="132">&nbsp;</td>
    <td width="163">&nbsp;{backlink}</td>
  </tr>
  <!--start_cut1--><tr>
    <td class="exd_field">{TF1}</td>
    <td>&nbsp;</td>
    <td class="exd_entry">{EF1}</td>
  </tr><!--end_cut1--> 
  <!--start_cut2--><tr>
    <td class="exd_field">{TF2}</td>
    <td>&nbsp;</td>
    <td class="exd_entry">{EF2}</td>
  </tr><!--end_cut2--> 
  <!--start_cut3--><tr>
    <td class="exd_field">{TF3}</td>
    <td>&nbsp;</td>
    <td class="exd_entry">{EF3}</td>
  </tr><!--end_cut3-->
  <!--start_cut6--><tr>
    <td class="exd_field">{TF6}</td>
    <td>&nbsp;</td>
    <td class="exd_entry">{EF6}</td>
  </tr><!--end_cut6-->
in this example field 4 and field 5 won't be displayed in the detail view (just cut the fields you don't want to show, see fieldnumbers in category definition area)
360fusion wrote:Is it posible to create a template for displaying the search listings rather than selecting options for fields in Templates - ExData Auto-Templates and categories - Create Replacement Tag?
again please
360fusion wrote:In ExData Entries Area is it possible to only display a couple of chosen fileds...
No, except from the search function
360fusion wrote:In ExData Entries Area is it possible to or will it in future releases to sort by seleted fields...If it is not already i think this would make this great module even better.
Yes, thanks for the hint, I'll see what I can do.
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch

User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by sustia » Tue 8. Jan 2008, 21:06

Maybe breitsch already answered to this question...the module works with the 05_12_2007 snapshot?

Because I'm not able to make it works..

This is my phpwcms.php file:

Code: Select all

<?php
/*************************************************************************************
   Copyright notice
   
   (c) 2002-2007 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.

This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.

This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/

// set page processiong start time
list($usec, $sec) = explode(' ', microtime());
$phpwcms_rendering_start = $usec + $sec;

//if(ini_get('register_globals') && function_exists('ini_set')) ini_set('register_globals', '0');
session_start();

//define used var names
$body_onload				= '';
$forward_to_message_center	= false;
$wcsnav 					= array();
$indexpage 					= array();
$phpwcms 					= array();
$BL							= array();
$BE							= array('HTML' => '', 'BODY_OPEN' => array(), 'BODY_CLOSE' => array(), 'HEADER' => array());

require_once ('config/phpwcms/conf.inc.php');
require_once ('include/inc_lib/default.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php');

require_once (PHPWCMS_ROOT.'/include/inc_lib/general.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/checklogin.inc.php');

require_once (PHPWCMS_ROOT.'/include/inc_lib/default.backend.inc.php');

//load default language EN
require_once (PHPWCMS_ROOT.'/include/inc_lang/backend/en/lang.inc.php');
$BL['modules']				= array();

if(!empty($_SESSION["wcs_user_lang_custom"])) {
	//use custom lang if available -> was set in login.php
	$BL['merge_lang_array'][0] = $BL['be_admin_optgroup_label'];
	$BL['merge_lang_array'][1] = $BL['be_cnt_field'];	
	include_once (PHPWCMS_ROOT.'/include/inc_lang/backend/'. substr($_SESSION["wcs_user_lang"],0,2) .'/lang.inc.php');
	$BL['be_admin_optgroup_label'] = array_merge($BL['merge_lang_array'][0], $BL['be_admin_optgroup_label']);
	$BL['be_cnt_field'] = array_merge($BL['merge_lang_array'][1], $BL['be_cnt_field']);
}

require_once (PHPWCMS_ROOT.'/include/inc_lib/navi_text.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/checkmessage.inc.php');
require_once (PHPWCMS_ROOT.'/config/phpwcms/conf.template_default.inc.php');
require_once (PHPWCMS_ROOT.'/config/phpwcms/conf.indexpage.inc.php');
include_once (PHPWCMS_ROOT.'/include/inc_lib/imagick.convert.inc.php');

// check modules 
include_once(PHPWCMS_ROOT.'/include/inc_lib/modules.check.inc.php');		

$BL['be_admin_struct_index'] = html_specialchars($indexpage['acat_name']);


$subnav	= ''; //Sub Navigation
$p		= isset($_GET["p"])  ? intval($_GET["p"]) : 0; //which page should be opened
$do		= isset($_GET["do"]) ? $_GET["do"] : 'default'; //which backend section and which $do action
$module	= isset($_GET['module'])  ? clean_slweg($_GET['module']) : ''; //which module

switch ($do) {

	case "articles":	//articles
						include_once(PHPWCMS_ROOT.'/include/inc_lib/admin.functions.inc.php');
						$wcsnav["articles"] = "<strong class=\"navtexta\">".$wcsnav["articles"]."</strong>";
						include_once(PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'); //loading array with actual content types
						include_once(PHPWCMS_ROOT.'/include/inc_lib/article.functions.inc.php'); //loading article funtions
						$subnav .= subnavtext($BL['be_subnav_article_center'], "phpwcms.php?do=articles", $p, "", 0);
						$subnav .= subnavtext($BL['be_subnav_article_new'], "phpwcms.php?do=articles&p=1", $p, "1", 0);
						break;

	case "files":		//files
						$wcsnav["files"] = "<strong class=\"navtexta\">".$wcsnav["files"]."</strong>";
						$subnav .= subnavtext($BL['be_subnav_file_center'], "phpwcms.php?do=files", $p, "", 0);
						$subnav .= subnavtext($BL['be_subnav_file_ftptakeover'], "phpwcms.php?do=files&p=8", $p, "8", 0);
						break;

	case "modules":		//modules
						$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
						if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
							include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/en/lang.inc.php');
							if(!empty($_SESSION["wcs_user_lang"]) && file_exists(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
								include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');
							}
							$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
						}

// EXDATA MODULE...
            if ($phpwcms["exdata_mod"]) { // enabled/disable ExData Module
              include_once (PHPWCMS_ROOT.'/include/inc_module/mod_exdata/inc_lang/backend/en/lang.inc.php');              
                if(!empty($_SESSION["wcs_user_lang"]) && file_exists(PHPWCMS_ROOT.'/include/inc_module/mod_exdata/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
                  include_once (PHPWCMS_ROOT.'/include/inc_module/mod_exdata/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php');                
                }
                $subnav .= subnavtext("ExData Module", "phpwcms.php?do=modules&p=91", $p, "91", 0); //NOTE: I took the Number 91 for this module. Please contact the official Mod's List to see what numbers are still free!
            }
            
						foreach($phpwcms['modules'] as $value) {
						
							$subnav .= subnavtext($BL['modules'][ $value['name'] ]['backend_menu'], 'phpwcms.php?do=modules&module='.$value['name'], $module, $value['name'], 0);
						
						}
						
						break;

	case "messages":	//messages
						$wcsnav["messages"] = "<strong class=\"navtexta\">".$wcsnav["messages"]."</strong>";
						if(isset($_SESSION["wcs_user_admin"]) && $_SESSION["wcs_user_admin"] == 1) {
							$subnav .= subnavtext($BL['be_subnav_msg_newslettersend'], "phpwcms.php?do=messages&p=3", $p, "3", 0);
							$subnav .= subnavtext($BL['be_subnav_msg_subscribers'], "phpwcms.php?do=messages&p=4", $p, "4", 0);
							$subnav .= subnavtext($BL['be_subnav_msg_newsletter'], "phpwcms.php?do=messages&p=2", $p, "2", 0);
														/*
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1"></td></tr>'."\n";
							$subnav .= subnavtext($BL['be_subnav_msg_forum'], "phpwcms.php?do=messages&p=6", $p, "6", 0);
							*/
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n";
						}
						$subnav .= subnavtext($BL['be_subnav_msg_center'], "phpwcms.php?do=messages", $p, "", 0);
						$subnav .= subnavtext($BL['be_subnav_msg_new'], "phpwcms.php?do=messages&p=1", $p, "1", 0);
						break;

	case "discuss":		//discuss
						$wcsnav["discuss"] = "<strong class=\"navtexta\">".$wcsnav["discuss"]."</strong>";
						break;

	case "chat":		//chat
						$wcsnav["chat"] = "<strong class=\"navtexta\">".$wcsnav["chat"]."</strong>";
						$subnav .= subnavtext($BL['be_subnav_chat_main'], "phpwcms.php?do=chat", $p, "", 0);
						$subnav .= subnavtext($BL['be_subnav_chat_internal'], "phpwcms.php?do=chat&p=1", $p, "1", 0);
						break;

	case "profile":		//profile
						$wcsnav["profile"] = "<strong class=\"navtexta\">".$wcsnav["profile"]."</strong>";
						if(!empty($_POST["form_aktion"])) {
							switch($_POST["form_aktion"]) { //Aktualisieren der wcs account & profile Daten
								case "update_account":	include_once(PHPWCMS_ROOT.'/include/inc_lib/profile.updateaccount.inc.php');
														break;
								case "update_detail":	include_once(PHPWCMS_ROOT.'/include/inc_lib/profile.update.inc.php'); 
														break;
								case "create_detail":	include_once(PHPWCMS_ROOT.'/include/inc_lib/profile.create.inc.php'); 
														break;
							}
						}
						$subnav .= subnavtext($BL['be_subnav_profile_login'], "phpwcms.php?do=profile", $p, "", 0);
						$subnav .= subnavtext($BL['be_subnav_profile_personal'], "phpwcms.php?do=profile&p=1", $p, "1", 0);
						break;

	case "logout":		//Logout
						$sql  = "UPDATE ".DB_PREPEND."phpwcms_userlog SET ";
						$sql .= "logged_change=".time().", logged_in=0 ";
						$sql .= "WHERE logged_user='".$_SESSION["wcs_user"]."' AND logged_in=1";
						@mysql_query($sql, $db);
						session_destroy();
						headerRedirect(PHPWCMS_URL.'login.php');
						break;

	case "admin":		//Admin
						if(isset($_SESSION["wcs_user_admin"]) && $_SESSION["wcs_user_admin"] == 1) {
							include_once(PHPWCMS_ROOT.'/include/inc_lib/admin.functions.inc.php');
							$subnav .= subnavtext($BL['be_subnav_admin_sitestructure'], "phpwcms.php?do=admin&p=6", $p, "6", 0);
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n";
							$subnav .= subnavtext($BL['be_subnav_admin_pagelayout'], "phpwcms.php?do=admin&p=8", $p, "8", 0);
							$subnav .= subnavtext($BL['be_subnav_admin_templates'], "phpwcms.php?do=admin&p=11", $p, "11", 0);
							$subnav .= subnavtext($BL['be_subnav_admin_css'], "phpwcms.php?do=admin&p=10", $p, "10", 0);
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n";
							$subnav .= subnavtext($BL['be_subnav_admin_users'], "phpwcms.php?do=admin", $p, "", 0);
							//$subnav .= subnavtext($BL['be_subnav_admin_groups'], "phpwcms.php?do=admin&p=1", $p, "1", 0);
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="15" width="1" alt="" /></td></tr>'."\n";
							//$subnav .= subnavtext($BL['be_admin_keywords'], "phpwcms.php?do=admin&p=5", $p, "5", 0);
							$subnav .= subnavtext($BL['be_subnav_admin_filecat'], "phpwcms.php?do=admin&p=7", $p, "7", 0);
							$subnav .= subnavtext($BL['be_subnav_admin_starttext'], "phpwcms.php?do=admin&p=12", $p, "12", 0);
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="15" width="1" alt="" /></td></tr>'."\n";
							//$subnav .= subnavtext($BL['be_cnt_cache_update'], 'include/inc_act/act_cache.php', 1, 0, 0);
							//$subnav .= subnavtext($BL['be_cnt_cache_delete'], 'include/inc_act/act_cache.php?do=9', 1, 0, 0, 'onclick="return confirm(\''.$BL['be_cnt_cache_delete_msg'].'\');" ');
							$subnav .= subnavtext($BL['be_cnt_move_deleted'], 'include/inc_act/act_file.php?movedeletedfiles='. $_SESSION["wcs_user_id"], 1, 0, 0, 'onclick="return confirm(\''.$BL['be_cnt_move_deleted_msg'].'\');" ');
							$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="15" width="1" alt="" /></td></tr>'."\n";
							//$subnav .= subnavtext($BL['be_settings'], "phpwcms.php?do=admin&p=2", $p, "2", 0);
							//$subnav .= '<tr><td colspan="2"><img src="img/leer.gif" height="5" width="1" alt="" /></td></tr>'."\n";
							$subnav .= subnavtextext('phpinfo()', 'include/inc_act/act_phpinfo.php', '_blank', 0);
							if($phpwcms["phpmyadmin"]) {
								$subnav .= subnavtextext('phpMyAdmin', 'include/inc_ext/phpMyAdmin/', '_blank', 0);
							}
						}
						break;
						
		default:		include_once(PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'); //loading array with actual content types

} //Ende Auswahl Aktion


//Subnav Wrap Text Tabelle
if($subnav) {
	$subnav  = '<table border="0" cellpadding="0" cellspacing="0" summary="">'.LF.$subnav;
	$subnav .= "<tr><td colspan=\"2\"><img src=\"img/leer.gif\" width=\"1\" height=\"15\" alt=\"\" /></td></tr>\n</table>";
}

//Wenn der User kein Admin ist, anderenfalls
if(empty($_SESSION["wcs_user_admin"])) {
	unset($wcsnav["admin"]);
} elseif($do  == "admin") {
	$wcsnav["admin"] = '<strong class="navtexta">'.$wcsnav["admin"].'</strong>';
}

//script chaching to allow header redirect
ob_start(); //without Compression

// set correct content type for backend
header('Content-Type: text/html; charset='.PHPWCMS_CHARSET);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title><?php echo $BL['be_page_title'] ?></title>
	<meta http-equiv="content-type" content="text/html; charset=<?php echo PHPWCMS_CHARSET ?>">
	<link href="include/inc_css/phpwcms.css" rel="stylesheet" type="text/css">
	<link href="include/inc_css/additional.css" rel="stylesheet" type="text/css">
	<meta name="robots" content="noindex, nofollow">
<?php

$BE['HEADER']['phpwcms.js']			= getJavaScriptSourceLink('include/inc_js/phpwcms.js');
$BE['HEADER']['browserSniffer.js']	= getJavaScriptSourceLink('include/inc_js/browserSniffer.js');



if($do == "messages" && $p == 1) {

	include_once(PHPWCMS_ROOT.'/include/inc_lib/message.sendjs.inc.php');

} elseif($do == "articles") {

	if($p == 2 && isset($_GET["aktion"]) && intval($_GET["aktion"]) == 2) {
		$BE['HEADER']['optionselect.js']	= getJavaScriptSourceLink('include/inc_js/optionselect.js');
	}
	if(($p == 1) || ($p == 2 && isset($_GET["aktion"]) && intval($_GET["aktion"]) == 1)) {
		$BE['HEADER']['date.js']			= getJavaScriptSourceLink('include/inc_js/date.js');
		$BE['HEADER']['dynCalendar.js']		= getJavaScriptSourceLink('include/inc_js/dynCalendar.js');
	}

} elseif($do == 'admin' && ($p == 6 || $p == 11)) {

	// struct editor
	$BE['HEADER']['optionselect.js']		= getJavaScriptSourceLink('include/inc_js/optionselect.js');

}

if(isset($_SESSION["wcs_user_lang"]) && $_SESSION["wcs_user_lang"] == 'ar') {
	$BE['HEADER'][] = '<style type="text/css">' . LF . '<!--' . LF . '* {direction: rtl;}' . LF . '//-->' . LF . '</style>';
}

?>
<!-- phpwcms HEADER -->
</head>

<body<?php echo $body_onload ?>><!-- phpwcms BODY_OPEN -->
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" summary="main layout structure">
	<tr>
	  <td colspan="6"><img src="img/leer.gif" alt="" width="1" height="7"></td>
  </tr>
	<tr>
	  <td colspan="6"><img src="img/leer.gif" alt="" width="15" height="1"><a href="phpwcms.php" target="_top"><img src="img/backend/backend_r1_c3.jpg" alt="phpwcms v<?php echo  html_specialchars($phpwcms["release"]); ?>" width="95" height="24" border="0"></a></td>
    </tr>
	<tr>
	  <td colspan="6"><img src="img/leer.gif" alt="" width="1" height="7"></td>
  </tr>
	<tr bgcolor="#FFFFFF">
	 <td valign="top" style="background-image:url(img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><img src="img/backend/backend_r3_c1.jpg" alt="" width="15" height="40"></td>
	  <td colspan="4" valign="top" style="background-image:url(img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><table width="740" border="0" cellpadding="0" cellspacing="0" summary="sub structure">
        <tr>
          <td colspan="2"><img src="img/leer.gif" alt="" width="1" height="9"></td>
        </tr>
        <tr>
          <td valign="top" class="navtext"><?php 
		  
		  // create backend main navigation
		  if($do == 'default') {
		  	echo '<strong class="navtexta"><a href="phpwcms.php">HOME</a></strong>&nbsp;&nbsp;&nbsp;';
		  } else {
		  	echo '<a href="phpwcms.php">HOME</a>&nbsp;&nbsp;&nbsp;';
		  }
		  echo implode('&nbsp;&nbsp;&nbsp;', $wcsnav);/*

	
	$nav_x=0;
	
	foreach ($wcsnav as $wcsnav_output) { //Generieren der Men&uuml;zeile mit Text
		echo ($nav_x) ? "&nbsp;&nbsp;&nbsp;".$wcsnav_output : $wcsnav_output;
		$nav_x++;
	}*/

				?></td>
          <td align="right" valign="top" class="navtext"><a href="phpwcms.php?do=logout" target="_top"><?php echo $BL['be_nav_logout'] ?></a></td>
        </tr>
      </table></td>
	  <td valign="top" style="background-image:url(img/backend/backend_r3_c4.jpg); background-repeat:repeat-x; "><img src="img/backend/backend_r3_c7.jpg" alt="" width="15" height="40"></td>
  </tr>
	<tr bgcolor="#FFFFFF">
	  <td width="15" bgcolor="#FFFFFF" style="background-image:url(img/backend/preinfo2_r7_c2.gif);background-repeat:repeat-y;"><img src="img/leer.gif" alt="" width="15" height="1"></td>
		<td width="175" valign="top" bgcolor="#FFFFFF"><?php 

		echo $subnav;
		echo '<img src="img/leer.gif" width="1" height="5" alt="" /><br /><span class="title">';
		echo $BL['usr_online'];
		echo '</span><br /><img src="img/leer.gif" width="1" height="3" alt="" /><br />';
		echo online_users($db, "<br />", "<span class=\"subnavinactive\">|</span>");

		?><img src="img/leer.gif" alt="" width="175" height="1"></td>
      <td width="10" bgcolor="#FFFFFF"><img src="img/leer.gif" alt="" width="10" height="1"></td>
      <td width="15" bgcolor="#FFFFFF" style="background-image:url(img/backend/dividerA.gif);background-repeat:repeat-y;"><img src="img/leer.gif" alt="" width="15" height="200"></td>
      <td width="540" valign="top" bgcolor="#FFFFFF" class="v11b width540"><?php
    
	// Show global system status message
	show_status_message();
	 
	 
      switch($do) {

      	case "profile":	//Profile
      	switch($p) {
      		case 1:		include_once (PHPWCMS_ROOT.'/include/inc_tmpl/profile.data.tmpl.php');
      					break;
      		default:	include_once (PHPWCMS_ROOT.'/include/inc_tmpl/profile.account.tmpl.php');
      	}
      	break;

      	case "files":	//Hochladen sowie Downloaden und Verwalten von Dateien
      	switch($p) {
      		case 8:		//FTP File upload
						include_once (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php');
						include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.ftptakeover.tmpl.php');
						break;
      		default:	include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.reiter.tmpl.php'); //Files Navigation/Reiter
      		switch($files_folder) {
      			case 0:	//Listing der Privaten Dateien
      			if(isset($_GET["mkdir"]) || (isset($_POST["dir_aktion"]) && intval($_POST["dir_aktion"]) == 1) ) {
					include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.newdir.tmpl.php');
				}
      			if(isset($_GET["editdir"]) || (isset($_POST["dir_aktion"]) && intval($_POST["dir_aktion"]) == 2) ) {
					include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.editdir.tmpl.php');
				}
      			if(isset($_GET["upload"]) || (isset($_POST["file_aktion"]) && intval($_POST["file_aktion"]) == 1) ) {
      				include_once (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php');
      				include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.upload.tmpl.php');
      			}
      			if(isset($_GET["editfile"]) || (isset($_POST["file_aktion"]) && intval($_POST["file_aktion"]) == 2) ) {
      				include_once (PHPWCMS_ROOT.'/include/inc_lib/files.create.dirmenu.inc.php');
      				include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.editfile.tmpl.php');
      			}
      			include_once (PHPWCMS_ROOT.'/include/inc_lib/files.private-functions.inc.php'); //Listing-Funktionen einfügen
      			include_once (PHPWCMS_ROOT.'/include/inc_lib/files.private.additions.inc.php'); //Zusätzliche Private Funktionen
      			break;
      			case 1: //Funktionen zum Listen von Public Files
      			include_once (PHPWCMS_ROOT.'/include/inc_lib/files.public-functions.inc.php'); //Public Listing-Funktionen einfügen
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.public.list.tmpl.php'); //Elemetares für Public Listing
      			break;
      			case 2:	//Dateien im Papierkorb
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.private.trash.tmpl.php');
      			break;
      			case 3:	//Dateisuche
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.search.tmpl.php');
      			break;
      		}
      		include_once (PHPWCMS_ROOT.'/include/inc_tmpl/files.abschluss.tmpl.php'); //Abschließende Tabellenzeile = dicke Linie
      	}
      	break;

      	case "chat":	//Chat
      	switch($p) {
      		case 0: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/chat.main.tmpl.php'); break; //Chat Startseite
      		case 1: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/chat.list.tmpl.php'); break; //Chat/Listing
      	}
      	break;

      	case "messages":	//Messages
      	switch($p) {
      		case 0: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/message.center.tmpl.php'); break; //Messages Overview
      		case 1: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/message.send.tmpl.php');   break;	//New Message
      		case 2: //Newsletter subscription
      		if($_SESSION["wcs_user_admin"] == 1) include_once (PHPWCMS_ROOT.'/include/inc_tmpl/message.subscription.tmpl.php');
      		break;
      		case 3: //Newsletter
      		if($_SESSION["wcs_user_admin"] == 1) include_once (PHPWCMS_ROOT.'/include/inc_tmpl/newsletter.list.tmpl.php');
      		break;
      		case 4: //Newsletter subscribers
      		if($_SESSION["wcs_user_admin"] == 1) {
				include_once (PHPWCMS_ROOT.'/include/inc_tmpl/message.subscribers.tmpl.php');
			}
      		break;
      		
			/*
			case 6:	//Forums list
			if($_SESSION["wcs_user_admin"] == 1) include_once (PHPWCMS_ROOT.'/include/inc_tmpl/forum.list.tmpl.php');
      		break;
			*/
			
      	}
      	break;

      	case "modules":	//Modules
		
			if($p == 2 && $phpwcms["gt_mod"]) { //enabled/disable GT MOD
				// include language vars for Jérôme's Graphical Text MOD
      			include_once(PHPWCMS_ROOT.'/include/inc_module/mod_graphical_text/main.inc.php');
      		}
      		
      		if($p == 91 && $phpwcms["exdata_mod"]) { // ExData Mod
            include_once(PHPWCMS_ROOT.'/include/inc_module/mod_exdata/main.inc.php');
          }
			
			// if a module is selected
			if(isset($phpwcms['modules'][$module])) {
			
				include_once($phpwcms['modules'][$module]['path'].'backend.default.php');
			
			}
			
			break;

      	case "admin":	//Administration
      	if($_SESSION["wcs_user_admin"] == 1) {
      		switch($p) {
      			case 0: //User Administration
      			switch(!empty($_GET['s']) ? intval($_GET["s"]) : 0) {
      				case 1: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.newuser.tmpl.php');  break; //New User
      				case 2: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.edituser.tmpl.php'); break; //Edit User
      			}
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.listuser.tmpl.php');
      			break;
				
				case 1: //Users and Groups
				include_once(PHPWCMS_ROOT.'/include/inc_tmpl/admin.groups.tmpl.php');				
				break;
				
				case 2: //Settings
				include_once(PHPWCMS_ROOT.'/include/inc_tmpl/admin.settings.tmpl.php');				
				break;
				
				case 5: //Keywords
				include_once(PHPWCMS_ROOT.'/include/inc_tmpl/admin.keyword.tmpl.php');	
				break;
				
      			case 6: //article structure
				
      			include_once (PHPWCMS_ROOT.'/include/inc_lib/admin.structure.inc.php');
      			if(isset($_GET["struct"])) {
					include_once (PHPWCMS_ROOT.'/include/inc_lib/article.contenttype.inc.php'); //loading array with actual content types
      				include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.structform.tmpl.php');
      			} else {
      				include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.structlist.tmpl.php');
      			}
      			break;
      			case 7:	//File Categories
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.filecat.tmpl.php');
      			break;
      			case 8:	//Page Layout
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.pagelayout.tmpl.php');
      			break;
      			case 10:	//Frontend CSS
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.frontendcss.tmpl.php');
      			break;
      			case 11:	//Templates
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.templates.tmpl.php');
      			break;
      			case 12:	//Default backend starup HTML
      			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/admin.startup.tmpl.php');
      			break;

      		}
      	}
      	break;

      	case "articles":	//Artikelbearbeitung
      	$_SESSION['image_browser_article'] = 0; //set how image file browser should work
      	switch ($p) {
      		case 0: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/article.structlist.tmpl.php');	break;
      		case 1: include_once (PHPWCMS_ROOT.'/include/inc_tmpl/article.new.tmpl.php');			break; //Neuen Artikel anlegen
      		case 2: include_once (PHPWCMS_ROOT.'/include/inc_lib/article.editcontent.inc.php');	break; //Contentedit
      	}
      	break;
		
		case "about":		// about phpwcms
							include_once (PHPWCMS_ROOT.'/include/inc_tmpl/about.tmpl.php');
							break;
		
		default: 			include_once (PHPWCMS_ROOT.'/include/inc_tmpl/be_start.tmpl.php');
							include_once (PHPWCMS_TEMPLATE.'inc_default/startup.php');

      }

?></td>
      <td width="15" bgcolor="#FFFFFF" style="background-image:url(img/backend/preinfo2_r7_c7.gif);background-repeat:repeat-y;background-position:right;"><img src="img/leer.gif" alt="" width="15" height="1"></td>
	</tr>
	<tr>
	  <td><img src="img/backend/backend_a_r1_c1.gif" alt="" width="15" height="15" border="0"></td>
	  <td colspan="4" valign="bottom" bgcolor="#FFFFFF" class="navtext"><img src="img/backend/backend_r6_c2.jpg" alt="" width="740" height="15" border="0"></td>
      <td valign="bottom" class="navtext"><img src="img/backend/backend_a_r1_c7.gif" alt="" width="15" height="15" border="0"></td>
  </tr>
	<tr>
	  <td width="15"><img src="img/leer.gif" alt="" width="14" height="17"></td>
	  <td colspan="5" valign="bottom" class="navtext">
	  	<a href="phpwcms.php?do=about" title="<?php echo $BL['be_aboutlink_title'] ?>">phpwcms <?php echo $phpwcms["release"] ?> 
			&copy; 2003&#8212;2007 Oliver Georgi. Licensed under GPL. Extensions are copyright
			of their respective owners.</a></td>
  </tr>
  <tr><td colspan="6"><img src="img/leer.gif" alt="" width="1" height="8"></td>
  </tr>
</table>
<?php

//Set Focus for chat insert filed
set_chat_focus($do, $p);

//If new message was sent -> automatic forwarding to message center
forward_to($forward_to_message_center, PHPWCMS_URL."phpwcms.php?do=messages", 2500);

$BE['BODY_CLOSE']['wz_tooltip.js'] = getJavaScriptSourceLink('include/inc_js/wz_js/wz_tooltip.js', '');

?>
<!-- phpwcms BODY_CLOSE -->
</body>
</html>
<?php

// retrieve complete processing time
list($usec, $sec) = explode(' ', microtime());
header('X-phpwcms-Page-Processed-In: ' . number_format(1000*($usec + $sec - $phpwcms_rendering_start), 3) .' ms');

$BE['HTML'] = ob_get_contents();
ob_end_clean();

//	replace special backend sections -> good for additional code like custom JavaScript, CSS and so on
//	<!-- phpwcms BODY_CLOSE -->
//	<!-- phpwcms BODY_OPEN -->
//	<!-- phpwcms HEADER -->

// special body onload JavaScript
if($body_onload) {
	$BE['HTML'] = str_replace('<body>', '<body '.$body_onload.'>', $BE['HTML']);
}

$BE['HEADER'][] = '	<!--[if lt IE 7]><style type="text/css"> body { behavior: url("include/inc_css/csshover2.htc"); } </style><![endif]-->';

// html head section
$BE['HTML'] = str_replace('<!-- phpwcms HEADER -->', implode(LF, $BE['HEADER']), $BE['HTML']);

// body open area
$BE['HTML'] = str_replace('<!-- phpwcms BODY_OPEN -->', implode(LF, $BE['BODY_OPEN']), $BE['HTML']);

// body close area
$BE['HTML'] = str_replace('<!-- phpwcms BODY_CLOSE -->', implode(LF, $BE['BODY_CLOSE']), $BE['HTML']);

// return all
echo $BE['HTML'];

?>
Campeones del mundo!
Vegetables!

breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by breitsch » Tue 8. Jan 2008, 23:37

@sustia

seems to be alright

Check the modifications in the files (don't post them here!):
PHPWCMS_ROOT/include/inc_front/content.func.inc.php

Code: Select all

// casa-loca's ExDataMOD
if($phpwcms["exdata_mod"]) { //enabled/disable ExData MOD
	require_once ('./include/inc_module/mod_exdata/inc_front/func.inc.php');
}
right before this:
// include external PHP script (also normal HTML snippets) or return PHP var value


PHPWCMS_ROOT/config/phpwcms/conf.inc.php file

Code: Select all

$phpwcms["exdata_mod"] = 1; // enable ExData Mod = 1, disable = 0
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch

User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by 360fusion » Wed 9. Jan 2008, 00:42

Hi Breitsch,

Thanks for your quick reply, the second 2 answers were great but i might not have explained the first question properly. I want to be able to create a template for the main listing which is filterable that links through to the detial listing. here are some links to my test site.

here is a link to the search results with one field option: http://360fusion.co.uk/johand2/index.php?job-search
here is a link to the search results with all fields option: http://360fusion.co.uk/johand2/index.php?news

this is a link to the details view which i have created a template for: http://360fusion.co.uk/johand2/index.ph ... entry_id=3

It is the search results listing i want to only show 3 options for to give a brief teaser of the job: job title, job region and job salary.

If it is not possible to create one using ExData's built in functionality is it possible to write some php code with a template to put in a content part that will bring in the search results?

Also...

Is it possible to add 3 filters to the search results page so i can filter by sector, region and duration?

Thanks for your time and patience.
Ben

breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by breitsch » Wed 9. Jan 2008, 00:54

360fusion wrote:It is the search results listing i want to only show 3 options for to give a brief teaser of the job: job title, job region and job salary.
Set to 'invisible' (global - in category area) all the fields you don't want to see in the listing (your 'all fields option'), they are only invisible in the listing, the detail-view template should show them all when set up correct.
360fusion wrote:Is it possible to add 3 filters to the search results page so i can filter by sector, region and duration?
No, only 2 filters are possible
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch

User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by sustia » Wed 9. Jan 2008, 09:14

@breitsch: yes, all the changes have been made in the content.func.inc.php and conf.inc.php.

Maybe it's a problem with the current snapshot?
Campeones del mundo!
Vegetables!

breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by breitsch » Wed 9. Jan 2008, 11:57

@sustia

It works with 1.3.5
Tell me more details. What do mean with 'not able to make it work'?
Do you get the link in Backend? Insatallation did run without error?
Best would be when I get backend access to your installation. (PM me)
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch

User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by sustia » Wed 9. Jan 2008, 12:16

Hi breitsch,
yes I got the link in the backend, but I'nm not able to see anything, only a blank section.
I'm sending you the access data in the backend.
Thanks.
Campeones del mundo!
Vegetables!

User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by 360fusion » Wed 9. Jan 2008, 17:38

Hi Breitsch,

Setting the fields to invisable got it working, it also answered a previous question on how to restrict the amount of inofrmation fields shown when sorting in the backend, now i have hidden the description of the jobs and other fields and just left key information it will make it a lot easier for admins to find and edit job listings.

Thanks for your help and for this great mod.

Ben

User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by 360fusion » Sat 12. Jan 2008, 14:10

Can this mod work with URL rewrite on? I have tested it and it doesn't, is there a way to gt it to work?

It would be a shame to not have the site using URL rewrite. Is there a way to have phpwcms ignore the one page i use for the exdata mod (index.php?job-search) and just not rewrite that page?

Thanks
Ben

User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by 360fusion » Sat 12. Jan 2008, 18:42

Me again.

I have just tried to do an export and then import the file again and recieved this error

Code: Select all

Fatal error: Unable to open csv file in D:\websites\xampp\htdocs\johandexdata\include\inc_module\mod_exdata\inc_lib\exdata.class.csv.php on line 160
I searched and found something similar and in this topic from a previous version of ExData but thought that would have been fixed in this later version. Is it a bug or haven't i set up the mod properly?

Thanks
Ben

User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Re: ExData Module - Tables, Lists and more... [New Version 2.70]

Post by heliotrope » Tue 19. Feb 2008, 21:19

Hello,
I use version 1.3.3 working well.
I installed ExdataMod following th einstructions..
and I get the same as Sustia:
link exdatamod is in the module section but when I click it I get a blank section.
Just nothing happens..
any idea ?

Post Reply