• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP form_edit函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中form_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP form_edit函数的具体用法?PHP form_edit怎么用?PHP form_edit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了form_edit函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: set_f

 public function set_f()
 {
     $id = $this->get("id", "int");
     if ($id) {
         $rs = $this->model('email')->get_one($id);
         $this->assign("rs", $rs);
         $this->assign("id", $id);
     } else {
         $rs = array("content" => '');
     }
     $edit_content = form_edit('content', $rs['content'], 'editor', 'height=300&btn_image=1&is_code=1');
     $this->assign('edit_content', $edit_content);
     $this->view("email_set");
 }
开发者ID:joyerma,项目名称:yongzhuo,代码行数:14,代码来源:email_control.php


示例2: set_f

 public function set_f()
 {
     $site_id = $_SESSION["admin_site_id"];
     $id = $this->get("id", "int");
     $idstring = "";
     if ($id) {
         $this->assign("id", $id);
         $rs = $this->model('project')->get_one($id);
         $this->assign("rs", $rs);
         $ext_module = "project-" . $id;
     } else {
         $rs = array();
         $ext_module = "add-project";
         $parent_id = $this->get("pid");
         $rs["parent_id"] = $parent_id;
         $rs['taxis'] = $this->model('project')->project_next_sort($parent_id);
         $this->assign("rs", $rs);
     }
     $parent_list = $this->model('project')->get_all($site_id, 0);
     $this->assign("parent_list", $parent_list);
     $this->assign("ext_module", $ext_module);
     $forbid = array("id", "identifier");
     $forbid_list = $this->model('ext')->fields("project");
     $forbid = array_merge($forbid, $forbid_list);
     $forbid = array_unique($forbid);
     $this->assign("ext_idstring", implode(",", $forbid));
     $module_list = $this->model('module')->get_all();
     $this->assign("module_list", $module_list);
     $site_id = $_SESSION["admin_site_id"];
     $catelist = $this->model('cate')->root_catelist($site_id);
     $this->assign("catelist", $catelist);
     $emailtpl = $this->model('email')->simple_list($site_id);
     $this->assign("emailtpl", $emailtpl);
     $c_rs = $this->model('sysmenu')->get_one_condition("appfile='list' AND parent_id>0");
     $gid = $c_rs["id"];
     unset($c_rs);
     $note_content = form_edit('admin_note', $rs['admin_note'], "editor", "btn_image=1&height=300");
     $this->assign('note_content', $note_content);
     $icolist = $this->lib('file')->ls('images/ico/');
     if ($rs['ico'] && !in_array($rs['ico'], $icolist) || !$rs['ico']) {
         $rs['ico'] = 'images/ico/default.png';
     }
     $this->assign('icolist', $icolist);
     $this->view("project_set");
 }
开发者ID:joyerma,项目名称:yongzhuo,代码行数:45,代码来源:project_control.php


示例3: set_f

 public function set_f()
 {
     $id = $this->get("id", "int");
     if ($id) {
         if (!$this->popedom["modify"]) {
             error(P_Lang('您没有权限执行此操作'), '', 'error');
         }
         $rs = $this->model('email')->get_one($id);
         $this->assign("rs", $rs);
         $this->assign("id", $id);
     } else {
         if (!$this->popedom["add"]) {
             error(P_Lang('您没有权限执行此操作'), '', 'error');
         }
         $rs = array("content" => '');
     }
     $edit_content = form_edit('content', $rs['content'], 'editor', 'height=480&btn_image=1&is_code=1');
     $this->assign('edit_content', $edit_content);
     $this->view("email_set");
 }
开发者ID:renlong567,项目名称:43168,代码行数:20,代码来源:email_control.php


示例4: form_save

function form_save()
{
    global $vars;
    extract(doSlash(gpsa($vars)));
    if ($savenew) {
        if (safe_insert("txp_form", "Form='{$Form}', type='{$type}', name='{$name}'")) {
            form_edit(messenger('form', $name, 'created'));
        } else {
            form_edit(messenger('form', $name, 'already_exists'));
        }
    } else {
        safe_update("txp_form", "Form='{$Form}',type='{$type}',name='{$name}'", "name='{$oldname}'");
        form_edit(messenger('form', $name, 'updated'));
    }
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:15,代码来源:txp_form.php


示例5: email_f

 public function email_f()
 {
     $content = form_edit('content', '', 'editor', 'height=300&btn_image=1&etype=simple');
     $this->assign('content', $content);
     $this->view("all_email");
 }
开发者ID:joyerma,项目名称:yongzhuo,代码行数:6,代码来源:all_control.php


示例6: form_save

function form_save()
{
    global $vars, $step, $essential_forms;
    extract(doSlash(gpsa($vars)));
    $name = doSlash(trim(preg_replace('/[<>&"\']/', '', gps('name'))));
    if (!$name) {
        $step = 'form_create';
        $message = gTxt('form_name_invalid');
        return form_edit(array($message, E_ERROR));
    }
    if (!in_array($type, array('article', 'category', 'comment', 'file', 'link', 'misc', 'section'))) {
        $step = 'form_create';
        $message = gTxt('form_type_missing');
        return form_edit(array($message, E_ERROR));
    }
    if ($savenew) {
        $exists = safe_field('name', 'txp_form', "name = '{$name}'");
        if ($exists) {
            $step = 'form_create';
            $message = gTxt('form_already_exists', array('{name}' => $name));
            return form_edit(array($message, E_ERROR));
        }
        safe_insert('txp_form', "Form = '{$Form}', type = '{$type}', name = '{$name}'");
        update_lastmod();
        $message = gTxt('form_created', array('{name}' => $name));
        return form_edit($message);
    }
    safe_update('txp_form', "Form = '{$Form}', type = '{$type}', name = '{$name}'", "name = '{$oldname}'");
    update_lastmod();
    $message = gTxt('form_updated', array('{name}' => $name));
    form_edit($message);
}
开发者ID:nope,项目名称:Tipattern,代码行数:32,代码来源:txp_form.php


示例7: editopen_f

 public function editopen_f()
 {
     $id = $this->get('id', 'int');
     if (!$id) {
         error(P_Lang('未指定ID'));
     }
     $rs = $this->model('res')->get_one($id);
     if (!$rs) {
         error(P_Lang('数据不存在'));
     }
     $this->popedom_action($rs['session_id'], $rs['user_id']);
     $note = form_edit('note', $rs['note'], 'editor', 'width=650&height=250&etype=simple');
     $this->assign('rs', $rs);
     $this->assign('note', $note);
     $this->view($this->dir_phpok . "open/res_editopen.html", 'abs-file', false);
 }
开发者ID:renlong567,项目名称:43168,代码行数:16,代码来源:upload_control.php


示例8: form_edit

    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 
        回访人员:</td>
      <td class="TableData" width="35%"><?php 
echo $view['user'];
?>
</td>
	  
	  <td class="TableContent" width="15%"> </td>
      <td class="TableData" width="35%">
	 
	  
       </td>
    </tr>

</table>
<?php 
//引入表单
form_edit('客户回访信息', 'crm_service', $view['id']);
//引入编辑器
form_edit_eweb('crm_service', $view['id']);
?>

</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:service_edit.php


示例9: public_value

" />
      </td>
    </tr>
	<tr>
      <td nowrap class="TableContent">客户名称:</td>
      <td class="TableData">
	  <?php 
if ($view['cid'] != '') {
    echo public_value('title', 'crm_company', 'id=' . $view['cid']);
}
?>
</td>
      <td class="TableContent"></td>
      <td class="TableData">
	 
      </td>
    </tr>
</table>
<?php 
//引入表单
form_edit('收款单信息', 'crm_price', $view['id']);
//引入编辑器
form_edit_eweb('crm_price', $view['id']);
?>
</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:price_edit.php


示例10: get_helps

        投诉时间:<?php 
get_helps();
?>
</td>
      <td class="TableData" width="35%"><input type="text" name="comdate" class="BigInput" size="15" value="<?php 
echo $view['comdate'];
?>
" onClick="WdatePicker();"/></td>
	  
	  <td class="TableContent" width="15%"> </td>
      <td class="TableData" width="35%">

	  
       </td>
    </tr>

</table>
<?php 
//引入表单
form_edit('客户投诉信息', 'crm_complaints', $view['id']);
//引入编辑器
form_edit_eweb('crm_complaints', $view['id']);
?>

</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:complaints_edit.php


示例11: foreach

     if (!$s->cfg['ver']['demo']) {
         $s->db_vars_save($s->cfg['file']['categories'], $db);
     }
     $m->location("sec=categories", "Categoria adicionada");
 } else {
     if ($act == "edit") {
         if (count($s->req['sel']) < 1) {
             $m->error_redir("nosel");
         }
         $l->form("categories", "edit_save");
         $l->table(505);
         foreach ($s->cat as $id => $val) {
             if (!$s->req['sel'][$id]) {
                 continue;
             }
             form_edit($id, $val);
             $l->tb_separator(30);
         }
         $l->tb_caption("Preencha todos os campos em <b>negrito</b>");
         $l->tb_button("submit", "Salvar", array("accesskey" => "s"));
         $l->tb_button("cancel", "Cancelar", array("_go" => "sec=categories"));
         $l->table_end();
         $l->form_end();
     } else {
         if ($act == "edit_save") {
             foreach ($s->req['c'] as $id => $req) {
                 $m->req('c|' . $id . '|name', 'c|' . $id . '|headlines|cut', 'c|' . $id . '|news|cut', 'c|' . $id . '|news|limit', 'c|' . $id . '|comments|limit_title', 'c|' . $id . '|comments|limit_comment');
                 $m->req_sync('c|' . $id . '|fullnews', 'c|' . $id . '|comments|active', 'c|' . $id . '|comments|req_mail', 'c|' . $id . '|comments|req_title', 'c|' . $id . '|comments|mzncode', 'c|' . $id . '|comments|smilies', 'c|' . $id . '|comments|queue', 'c|' . $id . '|comments|field1_r', 'c|' . $id . '|comments|field2_r');
             }
             $db = $s->db_vars_open($s->cfg['file']['categories']);
             $db = $m->array_sync($db, $s->req['c']);
开发者ID:JulioCF,项目名称:MZnews,代码行数:31,代码来源:i_categories.php


示例12: editar

 function editar($cp, $tabela)
 {
     $ed = new form();
     $ed->id = $this->id;
     $ed->tabela = $tabela;
     /* Valida botao */
     $bt = 0;
     for ($r = 0; $r < count($cp); $r++) {
         if (UpperCaseSQL(substr($cp[$r][0], 0, 2)) == '$B') {
             $bt = 1;
         }
     }
     if ($bt == 0) {
         array_push($cp, array('$B8', '', msg('submit'), False, False));
     }
     /* Monta forumário */
     $ed->cp = $cp;
     $result = form_edit($ed);
     $t = $result['tela'];
     $this->saved = $result['saved'];
     return $t;
 }
开发者ID:CGPUCPR,项目名称:SwB-2nd,代码行数:22,代码来源:form_sisdoc_helper.php


示例13: adm_f

 public function adm_f()
 {
     $id = $this->get('id', 'int');
     if (!$id) {
         error(P_Lang('未指定ID'));
     }
     $rs = $this->model('reply')->get_one($id);
     if (!$rs) {
         error(P_Lang('数据记录不存在'));
     }
     $this->assign("id", $id);
     $this->assign("rs", $rs);
     $title_rs = $this->model('list')->get_one($rs["tid"]);
     $this->assign("title_rs", $title_rs);
     $edit_content = form_edit('content', $rs['adm_content'], 'editor', 'width=680&height=300');
     $this->assign('edit_content', $edit_content);
     $this->view("reply_adm");
 }
开发者ID:renlong567,项目名称:43168,代码行数:18,代码来源:reply_control.php


示例14: set_f

 public function set_f()
 {
     $backurl = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : $this->url('res');
     $this->assign("home_url", $error_url);
     $id = $this->get("id", "int");
     if (!$id) {
         error(P_Lang('未指定ID'), $backurl, "error");
     }
     $this->assign("id", $id);
     $rs = $this->model('res')->get_one($id, true);
     if (!$rs) {
         error(P_Lang('附件不存在'), $backurl, "error");
     }
     $this->assign("id", $id);
     $this->assign("rs", $rs);
     $this->lib('form')->cssjs(array('form_type' => 'upload'));
     $this->addjs('js/webuploader/admin.upload.js');
     $content = form_edit('note', $rs['note'], 'editor', 'width=650&height=250&etype=simple');
     $this->assign('content', $content);
     $this->assign('backurl', $backurl);
     $this->view("res_manage");
 }
开发者ID:renlong567,项目名称:43168,代码行数:22,代码来源:res_control.php


示例15: trim

    echo trim($row['number']);
    ?>
" /></td>
      <td class="TableData" width="15%" align="center"><input name="unit_<?php 
    echo trim($row['id']);
    ?>
" type="text" class="BigInput" id="unit" style="width: 100px;" value="<?php 
    echo trim($row['unit']);
    ?>
" /></td>
    </tr>
	<?php 
}
?>
	
</table>

<?php 
//引入表单
form_edit('合同信息', 'crm_contract', $view['id']);
//引入编辑器
form_edit_eweb('crm_contract', $view['id']);
?>

</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:contract_edit.php


示例16: form_save

function form_save()
{
    global $vars, $step, $essential_forms;
    extract(doSlash(gpsa($vars)));
    if (!$name) {
        $step = 'form_create';
        form_edit();
    } elseif ($savenew) {
        if (safe_insert("txp_form", "Form='{$Form}', type='{$type}', name='{$name}'")) {
            form_edit(messenger('form', $name, 'created'));
        } else {
            form_edit(messenger('form', $name, 'already_exists'));
        }
    } else {
        safe_update("txp_form", "Form='{$Form}',type='{$type}'" . (!in_array($name, $essential_forms) ? ",name='{$name}'" : ''), "name='{$oldname}'");
        form_edit(messenger('form', $name, 'updated'));
    }
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:18,代码来源:txp_form.php


示例17: trim

" type="text" class="BigInput" id="number" style="width: 100px;" onKeyUp="value=value.replace(/[^0-9]/g,'');" value="<?php 
    echo trim($row['number']);
    ?>
" /></td>
      <td class="TableData" width="15%" align="center"><input name="unit_<?php 
    echo trim($row['id']);
    ?>
" type="text" class="BigInput" id="unit" style="width: 100px;" value="<?php 
    echo trim($row['unit']);
    ?>
" /></td>
    </tr>
	<?php 
}
?>
	
</table>
<?php 
//引入表单
form_edit('报价单信息', 'crm_offer', $view['id']);
//引入编辑器
form_edit_eweb('crm_offer', $view['id']);
?>

</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:offer_edit.php


示例18: get_pubuser

echo $view['title'];
?>
" />
       </td>
    </tr>
	<tr>
      <td nowrap class="TableContent">业务员:</td>
      <td class="TableData">
	  <?php 
echo get_pubuser(1, 'user', $view['user'], "+选择人员", '', 22);
?>
</td>
      <td class="TableContent"></td>
      <td class="TableData">

      </td>
    </tr>
</table>
<?php 
//引入表单
form_edit('供应商信息', 'crm_supplier', $view['id']);
//引入编辑器
form_edit_eweb('crm_supplier', $view['id']);
?>
</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:supplier_edit.php


示例19: public_value

      <td nowrap class="TableContent" width="15%"> 
        </td>
      <td class="TableData" width="35%"></td>
	  
	  <td class="TableContent" width="15%"> 客户名称:</td>
      <td class="TableData" width="35%">
	  <?php 
if ($view['cid'] != '') {
    echo public_value('title', 'crm_company', 'id=' . $view['cid']);
}
?>
	  
       </td>
    </tr>
	

</table>
<?php 
//引入表单
form_edit('解决方案信息', 'crm_program', $view['id']);
//引入编辑器
form_edit_eweb('crm_program', $view['id']);
?>

</div> 
</form>

 
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:program_edit.php


示例20: form_save

/**
 * Saves a form template.
 */
function form_save()
{
    global $essential_forms, $form_types;
    extract(doSlash(array_map('assert_string', psa(array('savenew', 'Form', 'type', 'copy')))));
    $name = sanitizeForPage(assert_string(ps('name')));
    $newname = sanitizeForPage(assert_string(ps('newname')));
    $save_error = false;
    $message = '';
    if (in_array($name, $essential_forms)) {
        $newname = $name;
        $type = fetch('type', 'txp_form', 'name', $newname);
        $_POST['newname'] = $newname;
    }
    if (!$newname) {
        $message = array(gTxt('form_name_invalid'), E_ERROR);
        $save_error = true;
    } else {
        if (!isset($form_types[$type])) {
            $message = array(gTxt('form_type_missing'), E_ERROR);
            $save_error = true;
        } else {
            if ($copy && $name === $newname) {
                $newname .= '_copy';
                $_POST['newname'] = $newname;
            }
            $exists = safe_field('name', 'txp_form', "name = '" . doSlash($newname) . "'");
            if ($newname !== $name && $exists !== false) {
                $message = array(gTxt('form_already_exists', array('{name}' => $newname)), E_ERROR);
                if ($savenew) {
                    $_POST['newname'] = '';
                }
                $save_error = true;
            } else {
                if ($savenew or $copy) {
                    if ($newname) {
                        if (safe_insert('txp_form', "Form = '{$Form}',\n                                type = '{$type}',\n                                name = '" . doSlash($newname) . "'")) {
                            update_lastmod();
                            $message = gTxt('form_created', array('{name}' => $newname));
                        } else {
                            $message = array(gTxt('form_save_failed'), E_ERROR);
                            $save_error = true;
                        }
                    } else {
                        $message = array(gTxt('form_name_invalid'), E_ERROR);
                        $save_error = true;
                    }
                } else {
                    if (safe_update('txp_form', "Form = '{$Form}',\n                            type = '{$type}',\n                            name = '" . doSlash($newname) . "'", "name = '" . doSlash($name) . "'")) {
                        update_lastmod();
                        $message = gTxt('form_updated', array('{name}' => $name));
                    } else {
                        $message = array(gTxt('form_save_failed'), E_ERROR);
                        $save_error = true;
                    }
                }
            }
        }
    }
    if ($save_error === true) {
        $_POST['save_error'] = '1';
    } else {
        callback_event('form_saved', '', 0, $name, $newname);
    }
    form_edit($message);
}
开发者ID:bgarrels,项目名称:textpattern,代码行数:68,代码来源:txp_form.php



注:本文中的form_edit函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP form_element函数代码示例发布时间:2022-05-15
下一篇:
PHP form_dropdown_array函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap