Exemple #1
0
	}
}
$data['headers'][] = new TableHeader ($rex->info['Collection']['title_field'], $rex->info['Collection']['title_field_name']);

if (in_array ('sitellite_status', $struct)) {
	$data['headers'][] = new TableHeader ('sitellite_status', intl_get ('Status'));
}

if (in_array ('sitellite_access', $struct)) {
	$data['headers'][] = new TableHeader ('sitellite_access', intl_get ('Access'));
}
*/
// build facets
$rex->bookmark = true;
if (count($rex->facets) > 0) {
    $data['facets'] = $rex->renderFacets();
} else {
    $data['facets'] = '';
}
$data['is_versioned'] = $rex->isVersioned;
/*
$f = new rSelectFacet ('sitellite_status', intl_get ('Status'));
$f->setOptions (array ('draft' => intl_get ('Draft'), 'approved' => intl_get ('Approved')));
$data['facets'][] = $f;

$f = new rSelectFacet ('sitellite_access', intl_get ('Access Level'));
$f->setOptions (array ('public' => intl_get ('Public'), 'private' => intl_get ('Private')));
$data['facets'][] = $f;

$f = new rSelectFacet ('sitellite_owner', intl_get ('Owner'));
$f->setOptions (array ('admin' => intl_get ('Admin')));
Exemple #2
0
$rex = new Rex(false);
$rex->bookmark = true;
$rex->facets['type'] = new rSelectFacet('type', array('display' => intl_get('Type'), 'type' => 'select'));
$rex->facets['type']->preserve = array('list', 'offset', 'orderBy', 'sort');
$rex->facets['type']->options = assocify(db_shift_array('select distinct type from sitellite_log where type != "" order by type asc'));
$rex->facets['type']->count = false;
$rex->facets['user'] = new rSelectFacet('user', array('display' => intl_get('User'), 'type' => 'select'));
$rex->facets['user']->preserve = array('list', 'offset', 'orderBy', 'sort');
$rex->facets['user']->options = assocify(db_shift_array('select distinct user from sitellite_log where user != "" order by user asc'));
$rex->facets['user']->count = false;
$rex->facets['range'] = new rSelectFacet('range', array('display' => intl_get('Date Range'), 'type' => 'select'));
$rex->facets['range']->preserve = array('list', 'offset', 'orderBy', 'sort');
$rex->facets['range']->options = array('day' => intl_get('Day'), 'week' => intl_get('Week'), 'month' => intl_get('Month'), 'year' => intl_get('Year'));
$rex->facets['range']->count = false;
$rex->facets['range']->all = false;
echo '<p style="clear: both">' . $rex->renderFacets() . '</p>';
function usradm_filter_stats_date($date)
{
    global $cgi;
    return Date::format($date, appconf('date_format_' . $cgi->_range));
}
echo template_simple('<p>
<table border="0" cellpadding="3" cellspacing="0" width="100%">
	<tr>
		<td width="35%" align="left" style="border-right: 1px solid #aaa; border-bottom: 1px solid #aaa">
			<a href="{site/prefix}/index/usradm-browse-action?list=log&_date={previous}&orderBy={cgi/orderBy}&sort={cgi/sort}&_range={cgi/_range}&_type={cgi/type}&_user={cgi/user}"><img src="{site/prefix}/inc/app/usradm/pix/arrow.prev.gif" alt="{intl Previous}" border="0" /> {intl Previous}: {filter usradm_filter_stats_date}{previous}{end filter}</a>
		</td>
		<td width="30%" align="center" style="border-right: 1px solid #aaa; border-bottom: 1px solid #aaa">
			<strong>{filter usradm_filter_stats_date}{cgi/_date}{end filter}</strong>
		</td>
		<td width="35%" align="right" style="border-bottom: 1px solid #aaa">
Exemple #3
0
            $parameters['list'][$item->{$r->key}]->title = multilingual_filter_title($cgi->_collection, $item->{$r->key});
        }
    }
    uasort($parameters['list'], 'multilingual_sort');
} else {
    foreach ($list as $item) {
        $parameters['list'][$item->id] = $tr->getByID($item->id);
        $r = new Rex($parameters['list'][$item->id]->collection);
        $parameters['list'][$item->id]->title = multilingual_filter_title($parameters['list'][$item->id]->collection, $parameters['list'][$item->id]->pkey);
        $parameters['list'][$item->id]->_collection = $parameters['list'][$item->id]->collection;
        $parameters['list'][$item->id]->collection = $parameters['collections'][$parameters['list'][$item->id]->collection];
    }
    uasort($parameters['list'], 'multilingual_sort');
}
page_title(intl_get('Translations'));
$r = new Rex(false);
$r->addFacet('status', array('display' => intl_get('Translation Status'), 'type' => 'select', 'values' => $parameters['statuses'], 'all' => false));
if ($cgi->_status == 'untranslated') {
    $r->addFacet('collection', array('display' => intl_get('Content Type'), 'type' => 'select', 'values' => $parameters['collections'], 'all' => false));
} else {
    $r->addFacet('collection', array('display' => intl_get('Content Type'), 'type' => 'select', 'values' => $parameters['collections']));
}
/*$r->addFacet ('team', array (
	'display' => intl_get ('Owned by Team'),
	'type' => 'select',
	'values' => $teams,
));*/
$r->addFacet('lang', array('display' => intl_get('Language'), 'type' => 'select', 'values' => multilingual_get_langs()));
$parameters['facets'] = $r->renderFacets();
echo template_simple('index.spt', $parameters);
//info ($parameters);