<?php if (!isset($_COOKIE['mid'])) { Redirect('/ورود'); } $m = newUR_MP_ASSETS("member", 'member_'); $record = $m->GetRecord($_COOKIE['mid']); $frm = new TForm('', 'post', array('class' => 'form')); $frm->AddField('text', 'نام', $record['member_name'], array('name' => 'member_name')); $frm->AddField('text', 'استاتوس', $record['member_status'], array('name' => 'member_status')); $frm->AddField('file', 'آواتار', $record['member_id'], array('name' => 'member_avatar')); $frm->AddField('text', 'مقطع', $record['member_degree'], array('name' => 'member_degree')); $frm->AddField('text', 'رشته تحصیلی', $record['member_field'], array('name' => 'member_field')); $frm->AddField('text', 'شماره تماس', $record['member_number'], array('name' => 'member_number')); $frm->AddField('text', 'شهر', $record['member_city'], array('name' => 'member_city')); $frm->AddField('hidden', '', '/form/profile', array('class' => 'action')); $frm->AddField('submit', '', 'ویرایش'); $reg_frm = $frm->FormHeader(); $reg_frm .= $frm->FormBody(); $reg_frm .= $frm->FormFooter(); $smarty->assign('reg_frm', $reg_frm);
<div class="attach"> <h3> فایل های پیوست شده </h3> <?php if (count($this->attach) > 0) { echo "<ul>"; foreach ($this->attach as $attached) { echo '<li><a class="delete" href="' . UR_MP . 'Upload/RemoveAttach/' . $attached['attach_id'] . '/' . $this->record['topic_id'] . '">' . $attached['attach_label'] . '</a></li>'; } echo "</ul>"; } ?> <?php echo $frm->FormFooter(); ?> <br /> <br /> <h3> افزودن پیوست </h3> <br /> <form action="<?php echo UR_MP; ?> Upload/UploadAttach/attach/<?php echo $this->record['topic_id']; ?> " method='post' enctype='multipart/form-data'> <input type="text" name="label" maxlength="250" class="input" placeholder="<?php