ֲ

[ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ]
[ 16 ] [ 17 ] [ 18 ] [ 19 ] [ 20 ] [ 21 ] [ 22 ] [ 23 ] [ 24 ] [ 25 ] [ 26 ] [ 27 ] [ 28 ] [ 29 ] [ 30 ] [ 31 ] [ 32 ]
[ 33 ] [ 34 ] [ 35 ] [ 36 ] [ 37 ] [ 38 ] [ 39 ] [ 40 ] [ 41 ] [ 42 ] [ 43 ] [ 44 ] [ 45 ] [ 46 ] [ 47 ] [ 48 ] [ 49 ] [ 50 ]

3. PHP -


PHP - , :
http://www.php.net
http://www.mysql.com
http://understandsql.narod.ru
http://www.webnetz.u9.ru/?index=no&id=php/index
, Web- Web- , : Enterprise1, Enterprise2, Enterprise3. , application.php , , dblib.php , , stdlib.php .
, :

  • Enterprise1/;
  • Enterprise1/admin ;
  • Enterprise1/admin/template () , ;
  • Enterprise1/images ( );
  • Enterprise1/lib ( , );
  • Enterprise2/templates () ( ).

³ XAMPP APACHE , D:\XAMPP\HTDOCS, , D:\XAMPP\HTDOCS\Enterprise1
(, ), , :

  • : , , ( categories.php);
  • : , , ( products.php);
  • () ( index.php).

, , NOTEPAD ().

) index.php :

 <?
 /* index.php */
 * MAIN */
 include("../application.php");
 $DOC_TITLE = "Enterprise ";
 include("templates/header.php");
 ?>
 < class=normal>
     Enterprise!
 <pre>
 TERMS USAGE:
 </pre>
 <?

include("templates/footer.php");

 ?>

:

  • include("../application.php") application.php, ᒺ $CFG. ( $CFG->wwwroot $CFG->dirroot 䳿 HTTP );
  • $DOC_TITLE = "Enterprise " $DOC_TITLE;

) categories.php , :

 switch (nvl($mode)) {
 case "add" :
 print_add_category_form(nvl($id, 0));
 break;
 case "edit" :
 print_edit_category_form($id);
 break;
 case "del" :
 delete_category($id);
 print_category_list();
 break;
 case "insert" :
 insert_subcategory($id, $HTTP_POST_VARS);
 print_category_list();
 break;
 case "update" :
 update_category($id, $HTTP_POST_VARS);
 print_category_list();
 break;
 default :
 print_category_list();
 break;
 }
 
, . INSERT ID , . : (mode=add), INSERT (mode=insert).

, , (mode=edit) , (mode=update), .
.
admin/products.php SELECT . HTML.

Enterprise1. Enterprise1 - APACHE ( D:\XAMPP\HTTPD) Web-, (Internet Explorer Netscape):

http://localhost/enterprise1/admin/, .

 

[ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ]
[ 16 ] [ 17 ] [ 18 ] [ 19 ] [ 20 ] [ 21 ] [ 22 ] [ 23 ] [ 24 ] [ 25 ] [ 26 ] [ 27 ] [ 28 ] [ 29 ] [ 30 ] [ 31 ] [ 32 ]
[ 33 ] [ 34 ] [ 35 ] [ 36 ] [ 37 ] [ 38 ] [ 39 ] [ 40 ] [ 41 ] [ 42 ] [ 43 ] [ 44 ] [ 45 ] [ 46 ] [ 47 ] [ 48 ] [ 49 ] [ 50 ]


! , . . . / , .
© 2007-2020 BPK Group.