?> ><?php echo $g['title']; ?> </option> <?php } ?> </select> <div id="gdesc" style="padding: 4px 10px;"><?php echo $glist[0]['desc']; ?> </div><div id="hr"></div> Является членом групп: <?php $groups = new CVCAppendingList(); $groups->Init('groups', 'height=48px;'); $glist = group_list(); for ($i = 0; $i < count($glist); $i++) { $g = $glist[$i]; $groups->AppendItem($g['name'], $g['id']); } $groups->Draw(); ?> <div class="formPast"> <button class="submitBtn block" type="submit">Создать</button> </div> </form> <?php dd_formc();
function Editor_EditForm_CreateForm($formname = '') { if (!$this->GetAllowed('ADDINFO')) { return; } $id = $this->Editor_EditForm_CurCatId(); $dataset = $this->GetCatDataset($id); $dataset->FreeValues(); println('<script language="JavaScript" type="text/javascript">'); println(' var initialized=false;'); println(' function Init () {'); println(' if (initialized) return;'); print $dataset->BuildInitScript($formname); println(' intialized=true;'); println(' }'); println('</script>'); dd_formo('title=Добавить элемент в этот подкаталог;onexpand=Init ();'); $dataset->DrawEditorForm($formname, content_url_get_full(), false, 'Добавить'); dd_formc(); }