• SugarCRM EditView.php 隐藏姓名,负责人(将姓名保存为登陆人名称)


    <table width="100%" border="0" cellspacing="0" cellpadding="0">在这段代码下(文本框布局的table)
    第一行 
    <tr> </tr> 之间的代码
    <tr>
    <td width="15%" class="dataLabel"><slot>{MOD.LBL_NAME}
    <span class="required">{APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
    <td width="35%" class="dataField"><slot><input name="name"
    tabindex
    ="1" size="35" maxlength="50" type="text" value="{NAME}"></slot></td>
    <td class="dataLabel"><slot>{MOD.LBL_ASSIGNED_USER_ID}</slot></td>
    <td class="dataField"><slot>
    <select name="assigned_type" onchange="this.form.assigned_user_id.value='';this.form.assigned_user_name.value='';">{ASSIGNED_TYPE_OPTIONS}</select>
    <input class="sqsEnabled" tabindex="1" autocomplete="off" id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}" disabled><input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" /></slot>
    <input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
    onclick
    ='open_popup(this.form.assigned_type.value, 600, 400, "", true, false, {encoded_users_popup_request_data});' />
    </td>
    </tr>
      替换为
    <input name="name" tabindex="1" size="35" maxlength="50" type="hidden" value="{ASSIGNED_USER_NAME}">
    <input class="sqsEnabled" tabindex="1" autocomplete="off" id="assigned_user_name" name='assigned_user_name' type="hidden" value="{ASSIGNED_USER_NAME}" disabled><input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />

    原理
    : 将名称与负责人的文本框的type改的并移到行外面
        此行的其它部分则删除
  • 相关阅读:
    vue导出Excel表格(纯前端)
    Ubuntu16.04+CUDA8.0+CUNN5.1+caffe+tensorflow+Theano
    python高级特性
    顺序容器
    感知机和支持向量机
    IO库
    字符串、向量、数组、迭代器

    c++函数
    C++语句
  • 原文地址:https://www.cnblogs.com/hailexuexi/p/1953244.html
Copyright © 2020-2023  润新知