织梦后台直接添加会员功能开发方法(4)

                      $MemberTypes[$nrow->rank] = $nrow->membername;

                 }

                 $options = "<select name='rank' style='width:180px'>\r\n";

                 foreach($MemberTypes as $k=>$v)

                 {

                      if($k!=$row['rank']) $options .= "<option value='$k'>$v</option>\r\n";

                      else $options .= "<option value='$k' selected>$v</option>\r\n";

                 }

                 $options .= "</select>\r\n";

                 echo $options;

                ?></td>

              </tr>

              <tr> 

                <td height="67" align="right" >&nbsp;</td>

                <td height="67" >

                <input type="submit" name="Submit" value="确定添加" class='coolbg' /> 

                  &nbsp;&nbsp;

                <input type="reset" name="Submit22" value="重置表单" class='coolbg' />

                </td>

              </tr>

            </form>

        </table>

        </td>

    </tr>

    </table>

    </body>

    </html>

 

打开 dede\inc\inc_menu.php,找到

<m:item name='注册会员列表' link='member_main.php' rank='member_List' target='main' />

在其 下面 增加如下代码

<m:item name='添加会员' link='huiyuan_add.php' rank='huiyuan_Add' target='main' />

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/d0a18020b1feab30a308a13ebd4f6e0e.html