Exemplo n.º 1
0
 function manage_spawn_dataset($id = -1, $settings = array(), $name = '')
 {
     $c = new CDataSet();
     $c->Init($id, $settings);
     if ($id < 0) {
         $c->SetName($name);
     }
     return $c;
 }
Exemplo n.º 2
0
/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Datatype edit form generation script
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
global $id, $viewelement;
$d = new CDataSet();
$d->Init($id);
$refCount = manage_dataset_refcount($id);
if ($viewelement != '') {
    include 'field.php';
} else {
    formo('title=Информация о наборе данных;');
    ?>
<script language="JavaScript" type="text/javascript">
  function check (frm) {
    var className = getElementById ('className').value;
    if (qtrim (className) == '') {
      alert ('Нельзя сменить имя набора данных на пустое.');
      return false;
    }
    frm.submit ();