本人php新手,从客户那弄到一个系统,我用php-5.1.6、Apache2.2、MySQL5.0搭了下,最后画面显示下面的效果,画面内容解析不出来,请问各位高手,是不是解析不了一些库函数,导致无法正常显示,该怎么办???
'; return $output; case 'aaaaa_project/guide': $output = '
'. t('You can '.l(t('Add Project Guide'), 'aaaaa_project/guide', array('title' => t('Add Project Guide'))).' according to the guide') .''; return $output; case 'aaaaa_project': $output = "";//'
'. t('You can '.l(t('Create new project'), 'aaaaa_project/add', array('title' => t('Create a new project.'))).' / delete existed project here') .''; return $output; } } /** * Implementation of hook_menu(). */ function aaaaa_project_menu($may_cache) { global $user; $items = array(); if ($may_cache) { $items[] = array( 'path' => 'aaaaa_project', 'title' => t('Project Management'), 'description' => t('Project Management'), 'callback' => 'aaaaa_project_list', 'access' => user_access('view project'), ); $items[] = array( 'path' => 'aaaaa_project/list', 'title' => t('List Project'), 'callback' => 'aaaaa_project_list', 'weight' => -10, 'access' => user_access('view project'), 'type' => MENU_DEFAULT_LOCAL_TASK, ); } else{ $items[] = array( 'path' => 'aaaaa_project/guide', 'title' => t('Add Project Guide'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_guide_form'), 'access' => user_access('apply project'), 'type' => MENU_CUSTOM_ITEM, ); $items[] = array( 'path' => 'aaaaa_project/edit', 'title' => t('Project Edit'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_edit_form',arg(2)), 'access' => user_access('edit project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/detail', 'title' => t('Project Detail'), 'callback' => 'aaaaa_project_detail', 'callback arguments' => array(arg(2)), 'access' => user_access('view project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/print', 'title' => t('Project Print'), 'callback' => 'aaaaa_project_print', 'callback arguments' => array(arg(2)), 'access' => user_access('view project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/apply', 'title' => t('Edit'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_apply_form',arg(2)), 'access' => user_access('apply project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/approve', 'title' => t('Approve Project'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_approve_form',arg(2)), 'access' => user_access('approve project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/refuse', 'title' => t('Refuse Project'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_refuse_form',arg(2)), 'access' => user_access('approve project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/remove', 'title' => t('Edit'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_remove_form',arg(2)), 'access' => user_access('remove project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/close', 'title' => t('Close Project'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_close_form',arg(2)), 'access' => user_access('close project'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/'.arg(1).'/add_materiel', 'title' => t('Add Materiel For Project'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_add_materiel_form',arg(1)), 'access' => user_access('edit project materiel'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/edit_materiel', 'title' => t('Edit Project Materiel'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_edit_materiel_form',arg(2)), 'access' => user_access('edit project materiel'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/remove_materiel', 'title' => t('Remove Project Materiel'), 'callback' => 'drupal_get_form', 'callback arguments' => array('aaaaa_project_remove_materiel_form',arg(2)), 'access' => user_access('edit project materiel'), 'type' => MENU_CALLBACK ); $items[] = array( 'path' => 'aaaaa_project/'.arg(1).'/list_materiel', 'title' => t('List Project Materiel'), 'callback' => 'aaaaa_project_materiel_list', 'callback arguments' => array(arg(1)), 'weight' => -10, 'access' => user_access('edit project materiel'), 'type' => MENU_CALLBACK, ); } return $items; } /** * Implementation of hook_perm(). */ function aaaaa_project_perm() { return array('view project', 'apply project','edit project','remove project','approve project','refuse project','edit project materiel','close project'); } function aaaaa_project_list(){ global $pager_total,$user; if(strlen($_GET["s"])>0 && $_GET["s"]>-1){ $current_status = $_GET["s"]; $status_sql = " AND p.status_code='".$_GET["s"]."'"; } else{ $current_status = "-1"; $status_sql = ""; } if(strlen($_GET["p"])>1){ $current_province=$_GET["p"]; $status_sql .= " AND s.province='".$_GET["p"]."'"; } else{ $current_province=0; $status_sql .= ""; } if(strlen($_GET["d"])>1){ $dealer_name=$_GET["d"]; $status_sql .= " AND d.dealer_name like '%".$_GET["d"]."%'"; } else{ $current_province=0; $status_sql .= ""; } drupal_add_js( 'function goStatus(ele){ var goURL = "?q=aaaaa_project/list/&s="+ele.options[ele.selectedIndex].value; window.location.href=goURL; } function goProvince(ele){ var goURL = "?

解决方案 »

  1.   

    部分源代码如下:
    <?
    // $Id: aaaaa_materiel.module,v 1.375.2.5 2007/05/31 05:58:17 drumm Exp $/**
     * Implementation of hook_help().
     */
    function aaaaa_project_help($section) {
    switch ($section) {
    case 'help#aaaaa_project':
    $output = '<p>'. t('') .'</p>';
    return $output;
    case 'aaaaa_project/guide':
    $output = '<p>'. t('You can '.l(t('Add Project Guide'), 'aaaaa_project/guide', array('title' => t('Add Project Guide'))).' according to the guide') .'</p>';
    return $output;
    case 'aaaaa_project':
    $output = "";//'<p>'. t('You can '.l(t('Create new project'), 'aaaaa_project/add', array('title' => t('Create a new project.'))).' / delete existed project here') .'</p>';
    return $output;
    }
    }
    /**
     * Implementation of hook_menu().
     */
    function aaaaa_project_menu($may_cache) {
    global $user;
    $items = array();
    if ($may_cache) {
    $items[] = array(
    'path' => 'aaaaa_project',
    'title' => t('Project Management'),
    'description' => t('Project Management'),
    'callback' => 'aaaaa_project_list',
    'access' => user_access('view project'),
    );
    $items[] = array(
    'path' => 'aaaaa_project/list',
    'title' => t('List Project'),
    'callback' => 'aaaaa_project_list',
    'weight' => -10,
    'access' => user_access('view project'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    );
    }
    else{
    $items[] = array(
    'path' => 'aaaaa_project/guide',
    'title' => t('Add Project Guide'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_guide_form'),
    'access' => user_access('apply project'),
    'type' => MENU_CUSTOM_ITEM,
    );
    $items[] = array(
    'path' => 'aaaaa_project/edit',
    'title' => t('Project Edit'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_edit_form',arg(2)),
    'access' => user_access('edit project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/detail',
    'title' => t('Project Detail'),
    'callback' => 'aaaaa_project_detail',
    'callback arguments' => array(arg(2)),
    'access' => user_access('view project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/print',
    'title' => t('Project Print'),
    'callback' => 'aaaaa_project_print',
    'callback arguments' => array(arg(2)),
    'access' => user_access('view project'),
    'type' => MENU_CALLBACK
    ); $items[] = array(
    'path' => 'aaaaa_project/apply',
    'title' => t('Edit'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_apply_form',arg(2)),
    'access' => user_access('apply project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/approve',
    'title' => t('Approve Project'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_approve_form',arg(2)),
    'access' => user_access('approve project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/refuse',
    'title' => t('Refuse Project'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_refuse_form',arg(2)),
    'access' => user_access('approve project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/remove',
    'title' => t('Edit'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_remove_form',arg(2)),
    'access' => user_access('remove project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/close',
    'title' => t('Close Project'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_close_form',arg(2)),
    'access' => user_access('close project'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/'.arg(1).'/add_materiel',
    'title' => t('Add Materiel For Project'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_add_materiel_form',arg(1)),
    'access' => user_access('edit project materiel'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/edit_materiel',
    'title' => t('Edit Project Materiel'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_edit_materiel_form',arg(2)),
    'access' => user_access('edit project materiel'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/remove_materiel',
    'title' => t('Remove Project Materiel'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array('aaaaa_project_remove_materiel_form',arg(2)),
    'access' => user_access('edit project materiel'),
    'type' => MENU_CALLBACK
    );
    $items[] = array(
    'path' => 'aaaaa_project/'.arg(1).'/list_materiel',
    'title' => t('List Project Materiel'),
    'callback' => 'aaaaa_project_materiel_list',
    'callback arguments' => array(arg(1)),
    'weight' => -10,
    'access' => user_access('edit project materiel'),
    'type' => MENU_CALLBACK,
    ); }
    return $items;
    }/**
     * Implementation of hook_perm().
     */
    function aaaaa_project_perm() {
    return array('view project', 'apply project','edit project','remove project','approve project','refuse project','edit project materiel','close project');
    }
      

  2.   

    ';返回$输出;案'aaaaa_project /指南':$输出=' 
    '。吨('可以'。升(吨('添加项目指南'),'aaaaa_project /指导,阵列('标题'=“吨('添加项目指南'))).'根据指导')。 ' ';返回$输出;案'aaaaa_project':$输出= "";//' 
    '。吨('可以'。升(吨('创建新的项目'),'aaaaa_project /添加',数组('标题'=“吨('创建一个新项目.'))).' /删除存在的项目在这里')。 ';返回$输出;))/ ** *执行hook_menu()。 * /函数aaaaa_project_menu($ may_cache)(全球$用户; $项目=阵列(),如果($ may_cache)($项目[] =阵列('路径'=>“aaaaa_project','冠军'=”t(下'项目管理'),'说明'=“吨('项目管理'),'回调'=>”aaaaa_project_list','进入'=“user_access('查看项目'),); $项目[] =阵列('路径'=>“aaaaa_project /名单','冠军'=”吨(名单项目'),'回调'=>“aaaaa_project_list','重'=”-10,'进入'=“user_access('查看项目'),'类型'=“MENU_DEFAULT_LOCAL_TASK,);)否则($项目[] =阵列('路径'=>”aaaaa_project /指南','冠军'=“吨('添加项目指南'),'回调' =>“drupal_get_form','回调参数'=”数组('aaaaa_project_guide_form'),'进入'=“user_access('应用项目'),'类型'=”MENU_CUSTOM_ITEM,); $项目[] =阵列('路径'=>“aaaaa_project /编辑','冠军'=”吨('项目编辑'),'回调'=>“drupal_get_form',''回调参数=”数组('aaaaa_project_edit_form',精氨酸(2)),'访问'=“user_access('编辑项目'),'类型'=”MENU_CALLBACK); $项目[] =阵列('路径'=>“aaaaa_project /细节','冠军'=”吨('项目内容') ,'回调'=>“aaaaa_project_detail','回调参数'=”数组(阿根廷(2)),'进入'=“user_access('查看项目'),'类型'=”MENU_CALLBACK); $项目[] =阵列('路径'=>“aaaaa_project /列印','冠军'=”吨('项目打印'),'回调'=>“aaaaa_project_print','回调参数'=”数组(阿根廷(2)),'访问'=“user_access('查看项目'),'类型'=”MENU_CALLBACK); $项目[] =阵列('路径'=>“aaaaa_project /申请','冠军'=”吨('编辑'), '回调'=>“drupal_get_form','回调参数'=”数组('aaaaa_project_apply_form',精氨酸(2)),'进入'=“user_access('应用项目'),'类型'=”MENU_CALLBACK); $项目[] =阵列('路径'=>“aaaaa_project /批准','冠军'=”吨('审批项目'),'回调'=>“drupal_get_form',''回调参数=”数组('aaaaa_project_approve_form',精氨酸(2)),'进入'=“user_access('审批项目'),'类型'=”MENU_CALLBACK); $项目[] =阵列('路径'=>“aaaaa_project /垃圾','标题'=”吨('垃圾项目'),'回调'=>“drupal_get_form',''回调参数=”数组('aaaaa_project_refuse_form',精氨酸(2)),'进入'=“user_access('审批项目'),'型'=“MENU_CALLBACK); $项目[] =阵列('路径'=>”aaaaa_project /删除','冠军'=“吨('编辑'),'回调'=>”drupal_get_form','回调参数'= “阵列('aaaaa_project_remove_form',精氨酸(2)),'进入'=”user_access('删除项目'),'类型'=“MENU_CALLBACK); $项目[] =阵列('路径'=>”aaaaa_project /关闭','冠军'=“吨('关闭项目'),'回调'=>”drupal_get_form','回调参数'=“数组('aaaaa_project_close_form',精氨酸(2)),'进入'=”user_access('关闭项目'),'类型'=“MENU_CALLBACK); $项目[] =阵列('路径'=>”aaaaa_project /'。精氨酸(1)。'/ add_materiel','冠军'=“吨('添加装备对于项目'),'回调'=>“drupal_get_form','回调参数'=”数组('aaaaa_project_add_materiel_form',精氨酸(1)),'进入'=“user_access('编辑项目物资'),'类型'= “MENU_CALLBACK); $项目[] =阵列('路径'=>”aaaaa_project / edit_materiel','冠军'=“吨('编辑项目物资'),'回调'=>”drupal_get_form','回调参数'= “阵列('aaaaa_project_edit_materiel_form',精氨酸(2)),'进入'=”user_access('编辑项目物资'),'类型'=“MENU_CALLBACK); $项目[] =阵列('路径'=>”aaaaa_project / remove_materiel','冠军'=“吨('删除项目物资'),'回调'=>”drupal_get_form','回调参数'=“数组('aaaaa_project_remove_materiel_form',精氨酸(2)),'进入'=”user_access ('编辑项目物资'),'类型'=“MENU_CALLBACK); $项目[] =阵列('路径'=>”aaaaa_project /'。精氨酸(1)。'/ list_materiel','冠军'=“t(下名单工程物资'),'回调'=>“aaaaa_project_materiel_list','回调参数'=”数组(阿根廷(1)),'重'=“-10,'进入'=”user_access('编辑项目物资' ),'型'=“MENU_CALLBACK,);)返回$项目;)/ ** *执行hook_perm()。 * /功能aaaaa_project_perm()(返回数组('查看项目','应用项目','编辑项目','删除项目','审批项目','垃圾项目','编辑项目物资','关闭项目' );)函数aaaaa_project_list()(全球$ pager_total,$的用户,如果(strlen($ _GET [的“S”])“0&&$ _GET [的”S“]”-1)($ current_status = $ _GET [“š “]; $ status_sql =”和p.status_code ='".$_得到[的“S "]."'";)否则($ current_status =”-1“; $ status_sql =”“;)如果(strlen($ _GET [“P”字])“1)($ current_province = $ _GET [”P“的]; $ status_sql .=”及s.province ='".$_得到[的“P "]."'";)否则( $ current_province = 0; $ status_sql .=“”;)如果(strlen($ _GET [“D”类])“1)($ dealer_name = $ _GET [”D“类]; $ status_sql .=”及d.dealer_name像'%".$_得到[的“D "]."%'";)否则($ current_province = 0; $ status_sql .=”“;)drupal_add_js('函数goStatus(ELE)的(VAR的goURL =”?问= aaaaa_project /列表/&商S =“+ ele.options [ele.selectedIndex]。价值; window.location.href = goURL;)功能goProvince(ELE)的(VAR的goURL =”?
      

  3.   

    在apahce配置中增加 
     AddType application/x-httpd-php .php
      

  4.   

    如果你用的windows建议你用 WAMP5 
    这些问题都应该不会出现
      

  5.   

    学php,可自己又苦于自学,需要指导的速速加QQ群,85140816 该群刚刚开放,现在面向全国免费教php,从零开始到能让你完整开发一个php项目!! 最重要的是所有课程免费!!!!赶快报名参加吧 机不可失 时不再来!!!  85140816 手把手教学 从最基础的配置开始!!到完整项目的开发!!配有大量实例!!!