Ejemplo n.º 1
0
<?php

/* $Id: select_subclass_list.php 6950 2012-05-12 09:04:54Z alkich $ */
$NETCAT_FOLDER = join(strstr(__FILE__, "/") ? "/" : "\\", array_slice(preg_split("/[\\/\\\\]+/", __FILE__), 0, -4)) . (strstr(__FILE__, "/") ? "/" : "\\");
include_once $NETCAT_FOLDER . "vars.inc.php";
require $ADMIN_FOLDER . "function.inc.php";
require $ADMIN_FOLDER . "related/format.inc.php";
require_once $INCLUDE_FOLDER . "s_common.inc.php";
$sub = (int) $sub;
$field_id = (int) $field_id;
$cs_field_name = htmlspecialchars($cs_field_name, ENT_QUOTES);
if (!$sub || !$field_id && !$cs_field_name) {
    trigger_error("Not enough data", E_USER_ERROR);
}
if ($field_id) {
    $field_data = field_relation_factory::get_instance_by_field_id($field_id);
} else {
    $cs_type = 'rel_cc';
    require $ADMIN_FOLDER . "array_to_form.inc.php";
    $classname = 'nc_a2f_field_' . $cs_type;
    if (!class_exists($classname)) {
        trigger_error("Wrong params", E_USER_ERROR);
    }
    $fl = new $classname();
    $field_data = $fl->get_relation_object();
}
$qry = $field_data->get_list_query($sub);
$cc_list = listQuery($qry, "<a href='#' onclick='top.selectItem(\$data[ItemID])' title='\".NETCAT_MODERATION_SELECT_RELATED.\"'>\n     <span class='id'>\$data[ItemID].</span> \$data[ItemCaption]\n    <div class='icons icon_related icon_subclass_select'></div></a>");
?>
<html>
    <head>
Ejemplo n.º 2
0
<?php

/* $Id: select_message_list.php 5946 2012-01-17 10:44:36Z denis $ */
$NETCAT_FOLDER = join(strstr(__FILE__, "/") ? "/" : "\\", array_slice(preg_split("/[\\/\\\\]+/", __FILE__), 0, -4)) . (strstr(__FILE__, "/") ? "/" : "\\");
include_once $NETCAT_FOLDER . "vars.inc.php";
require $ADMIN_FOLDER . "function.inc.php";
require $ADMIN_FOLDER . "related/format.inc.php";
require_once $INCLUDE_FOLDER . "s_common.inc.php";
$sub = (int) $sub;
$cc = (int) $cc;
$field_id = (int) $field_id;
if (!$sub || !$field_id) {
    trigger_error("Not enough data", E_USER_ERROR);
}
$field_format = field_relation_factory::get_instance_by_field_id($field_id);
?>
<html>
    <head>
        <title>Object list</title>
        <link type='text/css' rel='Stylesheet' href='<?php 
echo $ADMIN_TEMPLATE;
?>
css/admin.css'>
        <link type='text/css' rel='Stylesheet' href='<?php 
echo $ADMIN_TEMPLATE;
?>
css/main.css'>
    </head>

    <body style='margin:0; overflow: hidden'>
        <?php