- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
$infoI = array('Клиент' => 'clientsI', 'Страховая компания' => 'insCompI', 'Поставщик' => 'suppliersI');
$res = db_query('SELECT nid FROM {node} WHERE type=\'bank\'');
$bankI[-1] = 'Пусто';
while($nid = db_fetch_array($res)) {
$node = node_load($nid['nid']);
$bankI[$nid['nid']] = $node->title;
}
$db = new DB("SELECT nid FROM node WHERE type='organization'");
$db = $db->res;
$res_num = mysql_num_rows($db);
foreach($infoI as $key => $value)
${$value}[-1] = 'Пусто';
for($i = 0; $i < $res_num; $i++) {
$temp = mysql_fetch_array($db);
$node = node_load($temp['nid']);
foreach($node->taxonomy as $key => $value) {
${$infoI[$value->name]}[$node->nid] = $node->title;
}
}