Beispiel #1
0
/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Datatype editing 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;
$d = manage_spawn_datatype($id);
formo('title=Информация о типе данных;');
?>
<script language="JavaScript" type="text/javascript">
  function check (frm) {
    var className = getElementById ('className').value;

    if (qtrim (className) == '') {
      alert ('Нельзя сменить имя типа данных на пустое.');
      return false;
    }

    frm.submit ();
  }
</script>
Beispiel #2
0
 function manage_datatype_update_received($id)
 {
     $c = manage_spawn_datatype($id);
     $c->UpdateReceived();
 }
Beispiel #3
0
    die;
}
global $id, $eid;
formo('title=Поля набора данных;');
$d = manage_dataset_refcount($id);
redirector_add_skipvar('act', 'togimp');
?>
  <table class="list smb">
    <tr class="h">
      <th class="n first">№</th><th width="40%">Название</th><th>Поле</th><th>Тип</th><th width="118" class="last">&nbsp;</th>
    </tr>
<?php 
for ($i = 0; $i < count($list); $i++) {
    $r = $list[$i];
    $s = unserialize($r['settings']);
    $class = manage_spawn_datatype($r['datatype']);
    $imp = $s['important'];
    $invis = $s['invisible'];
    ?>
    <tr<?php 
    echo $i < count($list) - 1 ? '' : ' class="last"';
    ?>
>
      <td class="n"><?php 
    echo $i + 1;
    ?>
.</td>
      <td><a href=".?action=edit&id=<?php 
    echo $id;
    ?>
&viewelement=<?php