Пример #1
0
function LIB_export($pi_name)
{
    global $_CONF;
    global $_TABLES;
    $lang_box_admin = "LANG_" . strtoupper($pi_name) . "_ADMIN";
    global ${$lang_box_admin};
    $lang_box_admin = ${$lang_box_admin};
    $table = $_TABLES[strtoupper($pi_name) . '_def_group'];
    require_once $_CONF['path'] . 'plugins/' . $pi_name . '/lib/comj_dltbldt.php';
    // 項目の見出リスト
    $fld = array();
    $fld['group_id']['name'] = $lang_box_admin['group_id'];
    $fld['code']['name'] = $lang_box_admin['code'];
    $fld['name']['name'] = $lang_box_admin['name'];
    $fld['description']['name'] = $lang_box_admin['description'];
    $fld['orderno']['name'] = $lang_box_admin['orderno'];
    $fld['udatetime']['name'] = $lang_box_admin['udatetime'];
    $fld['uuid']['name'] = $lang_box_admin['uuid'];
    //----------------------
    $filenm = $pi_name . "_group";
    $tbl = "{$table}";
    $where = "";
    $order = "group_id";
    $addition = false;
    $rt = DATABOX_dltbldt($filenm, $fld, $tbl, $where, $order, $pi_name, $addition);
    return;
}
Пример #2
0
function fncexportexec()
{
    $pi_name = "userbox";
    global $_CONF;
    global $_TABLES;
    global $LANG_USERBOX_ADMIN;
    // 項目の見出リスト
    $fld = array();
    $fld['id']['name'] = $LANG_USERBOX_ADMIN['id'];
    $fld['page_title']['name'] = $LANG_USERBOX_ADMIN['page_title'];
    $fld['description']['name'] = $LANG_USERBOX_ADMIN['description'];
    $fld['comments']['name'] = $LANG_USERBOX_ADMIN['comments'];
    $fld['meta_description']['name'] = $LANG_USERBOX_ADMIN['meta_description'];
    $fld['meta_keywords']['name'] = $LANG_USERBOX_ADMIN['meta_keywords'];
    $fld['commentcode']['name'] = $LANG_USERBOX_ADMIN['commentcode'];
    $fld['comment_expire']['name'] = $LANG_USERBOX_ADMIN['comment_expire'];
    // 準備中 $fld['language_id'] = $LANG_USERBOX_ADMIN['language_id'];
    $fld['owner_id']['name'] = $LANG_USERBOX_ADMIN['owner_id'];
    $fld['group_id']['name'] = $LANG_USERBOX_ADMIN['group_id'];
    $fld['perm_owner']['name'] = $LANG_USERBOX_ADMIN['perm_owner'];
    $fld['perm_group']['name'] = $LANG_USERBOX_ADMIN['perm_group'];
    $fld['perm_members']['name'] = $LANG_USERBOX_ADMIN['perm_members'];
    $fld['perm_anon']['name'] = $LANG_USERBOX_ADMIN['perm_anon'];
    $fld['modified']['name'] = $LANG_USERBOX_ADMIN['modified'];
    $fld['created']['name'] = $LANG_USERBOX_ADMIN['created'];
    $fld['expired']['name'] = $LANG_USERBOX_ADMIN['expired'];
    $fld['released']['name'] = $LANG_USERBOX_ADMIN['released'];
    $fld['orderno']['name'] = $LANG_USERBOX_ADMIN['orderno'];
    $fld['trackbackcode']['name'] = $LANG_USERBOX_ADMIN['trackbackcode'];
    $fld['cache_time']['name'] = $LANG_USERBOX_ADMIN['cache_time'];
    $fld['draft_flag']['name'] = $LANG_USERBOX_ADMIN['draft'];
    $fld['udatetime']['name'] = $LANG_USERBOX_ADMIN['udatetime'];
    $fld['uuid']['name'] = $LANG_USERBOX_ADMIN['uuid'];
    //-----
    //----------------------
    $filenm = $pi_name . "_data";
    $tbl = "{$_TABLES['USERBOX_base']}";
    $fieldset_id = COM_applyFilter($_REQUEST['fieldset']);
    if ($fieldset_id == "all") {
        $where = "";
    } else {
        $where = "fieldset_id =" . $fieldset_id;
    }
    $order = "id";
    $addition = true;
    $rt = DATABOX_dltbldt($filenm, $fld, $tbl, $where, $order, $pi_name, $addition);
    return $rt;
}
Пример #3
0
function fncexportexec()
{
    global $_CONF;
    global $_TABLES;
    global $LANG_DATABOX_ADMIN;
    //require_once ($_CONF['path'].'plugins/databox/lib/comj_dltbldt.php');
    // 項目の見出リスト
    $fld = array();
    //3行目タイプ 準備中
    $fld['id']['name'] = $LANG_DATABOX_ADMIN['id'];
    $fld['id']['type'] = "numeric";
    $fld['code']['name'] = $LANG_DATABOX_ADMIN['code'];
    $fld['code']['type'] = "text";
    $fld['title']['name'] = $LANG_DATABOX_ADMIN['title'];
    $fld['title']['type'] = "text";
    $fld['page_title']['name'] = $LANG_DATABOX_ADMIN['page_title'];
    $fld['description']['name'] = $LANG_DATABOX_ADMIN['description'];
    $fld['comments']['name'] = $LANG_DATABOX_ADMIN['comments'];
    $fld['meta_description']['name'] = $LANG_DATABOX_ADMIN['meta_description'];
    $fld['meta_keywords']['name'] = $LANG_DATABOX_ADMIN['meta_keywords'];
    $fld['commentcode']['name'] = $LANG_DATABOX_ADMIN['commentcode'];
    $fld['comment_expire']['name'] = $LANG_DATABOX_ADMIN['comment_expire'];
    // 準備中 $fld['language_id'] = $LANG_DATABOX_ADMIN['language_id'];
    $fld['owner_id']['name'] = $LANG_DATABOX_ADMIN['owner_id'];
    $fld['group_id']['name'] = $LANG_DATABOX_ADMIN['group_id'];
    $fld['perm_owner']['name'] = $LANG_DATABOX_ADMIN['perm_owner'];
    $fld['perm_group']['name'] = $LANG_DATABOX_ADMIN['perm_group'];
    $fld['perm_members']['name'] = $LANG_DATABOX_ADMIN['perm_members'];
    $fld['perm_anon']['name'] = $LANG_DATABOX_ADMIN['perm_anon'];
    $fld['modified']['name'] = $LANG_DATABOX_ADMIN['modified'];
    $fld['created']['name'] = $LANG_DATABOX_ADMIN['created'];
    $fld['expired']['name'] = $LANG_DATABOX_ADMIN['expired'];
    $fld['released']['name'] = $LANG_DATABOX_ADMIN['released'];
    $fld['orderno']['name'] = $LANG_DATABOX_ADMIN['orderno'];
    $fld['trackbackcode']['name'] = $LANG_DATABOX_ADMIN['trackbackcode'];
    $fld['cache_time']['name'] = $LANG_DATABOX_ADMIN['cache_time'];
    $fld['draft_flag']['name'] = $LANG_DATABOX_ADMIN['draft'];
    $fld['udatetime']['name'] = $LANG_DATABOX_ADMIN['udatetime'];
    $fld['uuid']['name'] = $LANG_DATABOX_ADMIN['uuid'];
    //-----
    //----------------------
    $filenm = "databox_data";
    $tbl = "{$_TABLES['DATABOX_base']}";
    $fieldset_id = COM_applyFilter($_REQUEST['fieldset']);
    if ($fieldset_id == "all") {
        $where = "";
    } else {
        $where = "fieldset_id =" . $fieldset_id;
    }
    $order = "id";
    $addition = true;
    $tbl_prefix = "DATABOX";
    $return_page = $url = $_CONF['site_admin_url'] . '/plugins/' . THIS_SCRIPT . '?mode=exportform';
    $return_page = $url = $_CONF['site_admin_url'] . '/plugins/' . THIS_SCRIPT;
    $rt = DATABOX_dltbldt($filenm, $fld, $tbl, $where, $order, $tbl_prefix, $addition, $return_page);
    return $rt;
}
Пример #4
0
function LIB_export($pi_name)
{
    global $_CONF;
    global $_TABLES;
    $lang_box_admin = "LANG_" . strtoupper($pi_name) . "_ADMIN";
    global ${$lang_box_admin};
    $lang_box_admin = ${$lang_box_admin};
    $table = $_TABLES[strtoupper($pi_name) . '_def_field'];
    require_once $_CONF['path'] . 'plugins/' . $pi_name . '/lib/comj_dltbldt.php';
    // 項目の見出リスト
    $fld = array();
    $fld['field_id']['name'] = $lang_box_admin['field_id'];
    $fld['name']['name'] = $lang_box_admin['name'];
    $fld['orderno']['name'] = $lang_box_admin['orderno'];
    $fld['templatesetvar']['name'] = $lang_box_admin['templatesetvar'];
    $fld['description']['name'] = $lang_box_admin['description'];
    $fld['allow_display']['name'] = $lang_box_admin['allow_display'];
    $fld['allow_edit']['name'] = $lang_box_admin['allow_edit'];
    $fld['type']['name'] = $lang_box_admin['type'];
    $fld['selection']['name'] = $lang_box_admin['selection'];
    $fld['selectlist']['name'] = $lang_box_admin['selectlist'];
    $fld['checkrequried']['name'] = $lang_box_admin['checkrequried'];
    $fld['size']['name'] = $lang_box_admin['size'];
    $fld['maxlength']['name'] = $lang_box_admin['maxlength'];
    $fld['rows']['name'] = $lang_box_admin['rows'];
    $fld['br']['name'] = $lang_box_admin['br'];
    $fld['orderno']['name'] = $lang_box_admin['orderno'];
    $fld['udatetime']['name'] = $lang_box_admin['udatetime'];
    $fld['uuid']['name'] = $lang_box_admin['uuid'];
    //----------------------
    $filenm = $pi_name . "_field";
    $tbl = "{$table}";
    $where = "";
    $order = "field_id";
    $addition = false;
    $rt = DATABOX_dltbldt($filenm, $fld, $tbl, $where, $order, $pi_name, $addition);
    return;
}
Пример #5
0
function LIB_export($pi_name)
{
    global $_CONF;
    global $_TABLES;
    $lang_box_admin = "LANG_" . strtoupper($pi_name) . "_ADMIN";
    global ${$lang_box_admin};
    $lang_box_admin = ${$lang_box_admin};
    $table = $_TABLES[strtoupper($pi_name) . '_mst'];
    require_once $_CONF['path'] . 'plugins/databox/lib/comj_dltbldt.php';
    // 項目の見出リスト
    $fld = array();
    $fld['id']['name'] = $lang_box_admin['id'];
    $fld['kind']['name'] = $lang_box_admin['kind'];
    $fld['no']['name'] = $lang_box_admin['no'];
    $fld['value']['name'] = $lang_box_admin['value'];
    $fld['value2']['name'] = $lang_box_admin['value2'];
    $fld['disp']['name'] = $lang_box_admin['disp'];
    $fld['orderno']['name'] = $lang_box_admin['orderno'];
    $fld['relno']['name'] = $lang_box_admin['relno'];
    $fld['udatetime']['name'] = $lang_box_admin['udatetime'];
    $fld['uuid']['name'] = $lang_box_admin['uuid'];
    //----------------------
    $filenm = $pi_name . "_mst";
    $tbl = "{$table}";
    $where = "";
    $order = "kind,no";
    $addition = false;
    $rt = DATABOX_dltbldt($filenm, $fld, $tbl, $where, $order, $pi_name, $addition);
    return;
}