Summary of the Web development phase (2) and summary of the Web development phase
1. Today's browsers are more intelligent. When the database data changes, the cache data on the web page will not be read. Use the following code to access the database:
Var thePage = 'servesql. php ';
MyRand = parseInt (Math. random () * 9999999999999999 );
Var theURL = thePage + "? Rand = "+ myRand;
Xmlhttp. open ("GET", theURL, true );
Xmlhttp. onreadystatechange = GetXmlTextByTagName;
The result is that data cannot be sent to the database. This method may not be supported by browsers. This method is not supported in chrome and Internet Explorer with the kernel version IE6.0.
Reference: http://www.w3school.com.cn/ajax/ajax_xmlhttprequest_send.asp
2. When debugging php on the WAMP configuration, a debugging error is displayed on the webpage:
Start these two items in php. ini: display_errors = On & error_reporting = E_ALL
3. Differences between php. ini-production and php. ini-development:
If php. change ini-production to php. ini, the default debugging information is not displayed on the web page, so if you are using php for development and debugging, it is best to use php. change ini-development to php. ini.
4. How to disable pdo after connecting to the database:
$ Pdo = new PDO ($ dsn );
$ Pdo = null; // close it.
5. error: Fatal error: Call to a member function fetchAll () on a non-objec
Generally, the database connection address is incorrect or there is no data in the database.
6. error: error on line 1 at column 1: Document is empty.
When writing xml files with php, the output function is not allowed before the header () function, for example, var_dump ($ something). Otherwise, the header ('content-Type: text/xml in text/xml ') to text/json.
<? Php
$ Dbh = new PDO ("sqlite: upsdata. dat", null, null );
$…… = $ Dbh-> query ('select * FROM t_ups_rundata ');
Var_dump ($ something );
$ Result = $ something-> fetchAll ();
$ I = 0;
$ CountArray = 0;
Foreach ($ result [0] as $ x => $ x_value)
{
If ($ I % 2 = 0)
{
$ UPSData [$ CountArray ++] = $ x_value;
}
$ I ++;
}
// Print_r ($ UPSData );
Header ('content-Type: text/xml ');
Echo "<? Xml version = '1. 0' encoding = 'utf-8'?> ";
Echo "<clock> ";
Echo "<timestring> $ UPSData [3] </timestring> ";
Echo "</clock> ";
$ Dbh = null;
?>
7. When ajax is used, xmlHttp = new XMLHttpRequest () and xmlHttp. open () and xmlHttp. send () can only be implemented in the same file.
8. Different browsers Parse xml files in different ways: http://www.jb51.net/article/20876.htm
9. When a webpage file is running on IE6.0, there is no syntax error, but the browser will crash if there is a mistake in the operation.
10. Problem: No dynamic data refresh is implemented on ie6.0. Data Refresh can be realized only when another webpage is opened.
Solution: In general, the "check every time this page is accessed" option is not checked. Check the process: Tools> Internet Options> Settings> check each time you access this page.
Four ways to set up IE cache: http://zhidao.baidu.com/link? Url = Response
11,
// Code for IE7 +, Firefox, Chrome, Opera, Safari
XmlHttp = new XMLHttpRequest ();
Var url = "responsexml. php ";
XmlHttp. open ("GET", url, false );
XmlHttp. send (null );
XmlHttp. onreadystatechange = getValue (xmlHttp );
When xmlHttp. open ("GET", url, false); xmlHttp. send (null); these two functions are placed after onreadystatechange, data cannot be read, and no data is displayed on the page. The specific reason is not found.
12. ajax operations for IE5 and IE6:
// Code for IE6, IE5
XmlHttp = new ActiveXObject ("Microsoft. XMLHTTP ");
Var url = "responsexml. php ";
XmlHttp. onreadystatechange = function ()
{
If (xmlHttp. readyState = 4 & xmlHttp. status = 200)
{
XmlDoc = xmlHttp. responseXML;
Nodes‑xmldoc.doc umentElement. childNodes;
InputVoltage. innerHTML = nodes. item (3). text;
OutputVoltage. innerHTML = nodes. item (7). text;
OutputMinVoltage. innerHTML = nodes. item (34). text;
OutputMaxVoltage. innerHTML = nodes. item (33). text;
Frequency. innerHTML = nodes. item (13). text;
XmlHttp = null;
}
}
XmlHttp. open ("GET", url, true );
XmlHttp. send (null );
Performance Management of Human Resources 1. Preparation of performance management 2. Implementation 3. Evaluation 4. Summary 5. Application Development 6. Performance
Performance Appraisal Method
1. Graphic Scale Evaluation Method: it is one of the simplest and most common performance evaluation technologies. It is generally scored in the form of graphic scale tables. 2. Alternate sorting method: it is a commonly used sorting method. The principle is: selecting the best or the worst performers in A group is much easier than performing an absolute assessment of its performance. Therefore, the alternative sorting method is to select and sort the "best" and "worst" respectively, and then select the "second good" and "second bad ", in this way, all the persons to be evaluated are arranged in full order, so that the performance evaluation result is sorted by merits and demerits. The performance sorting table can also be used for alternate sorting. 3. paired comparison method: a more detailed method for assessing the performance level through sorting. It features that each evaluation element must be compared and sorted by personnel, in this way, each person is compared with all others under each assessment element, and all the reviewers are fully sorted under each element. 4. Forced Distribution Method: Set the distribution ratio of the performance level before the assessment is conducted, and then arrange the employee's assessment results in the distribution structure. 5. Key event Method: it is a way to evaluate the performance level of employees through their key behaviors and behavior results, generally, the supervisor records the outstanding behavior events or very bad behavior events displayed by its employees at work, and then performs the assessment at the time point (Quarterly, or conduct an interview with the employee every six months and discuss the performance level based on the records. 6. Behavior anchor Grading Evaluation Method: This method is based on observing and assessing the work behavior of the examinee to assess the performance level. 7. Target Management Method: The target management method is a more modern method. Managers usually emphasize the results indicators that can bring results, such as profits, sales and costs. Under the target management method, each employee has identified a number of specific indicators, which are the key objectives for the successful development of their work. Their fulfillment can be used as a basis for evaluating employees. 8. narrative method: the facts are described in texts during the assessment, including the obvious achievements made in previous work and the shortcomings and defects in the work. 9. 360 ° Evaluation Method: This method evaluates the performance level through peer evaluation, superior evaluation, lower-level evaluation, customer evaluation, and personal evaluation.
------- Performance appraisal plan
I. General provisions
This system is formulated to standardize the company's inspection and evaluation of its employees.
Ii. Purpose of assessment
1. Create a high-quality, advanced, highly cohesive and team-oriented talent team with excellent business skills, and form an assessment-oriented talent management mechanism.
2. assess the performance of employees over the past period of time in a timely and fair manner, affirm the performance, discover problems, and prepare for the performance improvement of the next stage of work.
3. provides personnel information and decision-making basis for middle-level management, the formulation of career development plans for technical employees, the salary and treatment of employees (including the adjustment of employees' shareholding weights), and related education and training.
4. Personnel Assessment is transformed into a management process to form a two-way communication platform between employees and the company to improve management efficiency.
Iii. Assessment Principles
1. It is based on the company's business performance indicators and related management indicators of employees and the objective facts in the actual work of employees;
2. Taking the content, procedures and methods stipulated in the employee assessment system as the operating principles;
3. The core evaluation philosophy is comprehensive, objective, fair, open, and standardized.
4. intended audience
This system is mainly designed for staff of the company's headquarters and professional and technical personnel of Business Management at or above the subsidiary level (staff of the subsidiary level below the deputy general level shall be assessed by the branch in reference to the Headquarters form ). In addition, the following situations are not covered by the assessment:
1. During the trial period, the employee has not been changed to an employee.
2. continuous attendance for less than six months or suspension for more than six months before the assessment
3. Part-time and special personnel
V. Schedules of various types of assessments
Assessment type assessment time review time Assessment Final time
Mid-year assessment, January 1, January 1
Annual Assessment, January 1, January 1
Probation assessment based on company recruitment ...... remaining full text>
Build a project study summary report to the website
In recent years, college students' employment has become increasingly prominent. On the one hand, graduates are difficult to find employment, while on the other hand, enterprises cannot find suitable talents. The reason is that the training of students is decoupled from the needs of enterprises. Enterprises need talents with practical work experience. However, college graduates often have insufficient hands-on skills and experience. In the face of employment difficulties, vocational colleges are exploring how to give full play to the "Occupation" characteristics, take employment as the orientation, cultivate "quasi-professional", and deliver practical and available talents for enterprises. The author uses the project teaching method to cultivate "quasi-professional" Teaching Attempts, achieving good teaching results.
The project teaching method integrates teaching knowledge points into practical engineering projects, and takes engineering projects as the teaching objects. Through the guidance of teachers, students collect data, explore problems, and collaborate with each other in engineering projects, finally, a new teaching method is completed for the specified project. The core idea of the project teaching method is to drive students to learn independently through projects, link theories with reality, learn while doing, and cultivate students' multi-faceted abilities. The main steps of the project teaching method are: develop a project-guiding demonstration-Autonomous Learning and Exploration-Cooperate to complete the project-Project Summary and evaluation. In the project teaching process, project-centered, student-centered, instructors play a guiding role, and are responsible for creating learning resources and collaborative learning environments. Based on the characteristics of the Website planning and construction course of E-commerce major and the project teaching method, the author conducts experimental research on teaching.
1. Study the teaching content and select the appropriate project.
Selecting appropriate projects is the key to teaching success. Projects must be completed by students within a specified period of time. They must be closely integrated with the teaching content and motivate students to learn, and gradually evolved from easy to difficult. Based on Teaching Requirements and student level, I chose the first project: "Cangshan Online Bookstore" (a simple book purchasing website with only two pages ). After the project is completed, the author worked out the "world olive Enterprise Website" project and the "Mintian Food Factory Enterprise Website" project jointly with the marketing teacher. In the latter two projects, the author took the students to the enterprise for on-site research, conducted practical cooperation with the enterprise, invited the enterprise owner to participate in the project evaluation, and finally delivered the project results (enterprise website) to the enterprise for use, it is well received by enterprises. In the selection of projects, the author is guided by the "professional training objectives" and regards the actual production projects of enterprises as teaching projects to meet the needs of enterprises, so that students can stay in touch with enterprises, train "quasi-professionals ". The three projects selected by the author are difficult. The lowest difficulty of the "Cangshan Online Bookstore" is a demonstration project. The "World's olive Enterprise Website" is mainly about product display, which is moderately difficult, the enterprise website of Mintian food factory requires a background management system and message board system, which is difficult. From easy to difficult, the project gradually guides students to learn and gradually exercises their practical abilities.
2. Arrange teaching with the project as the core and guide the key points of the demonstration project.
Project teaching should adjust the original course knowledge according to the Teaching Project, re-arrange the course knowledge points around the project implementation process, and add, delete, modify, and adapt to project teaching. For complex projects, the project can be split into several sub-projects according to the project implementation steps and teaching needs. In terms of the key steps and key difficulties of the project, teachers should conduct appropriate guidance and demonstration to reduce the difficulty of project implementation, so that the vast majority of students can master the knowledge points involved in the project, and has the ability to implement projects. Based on the Website planning and construction steps and teaching content, the author divides the "Cangshan Online Bookstore" project into "Cangshan Online Bookstore" feasibility analysis, basic model planning, specific page planning, website production and the test and website summary evaluation are divided into five sub-projects.
In teaching, the author first explains the professional knowledge, and combines the professional knowledge with the corresponding sub-projects, guides the key points and difficulties in the implementation of the demonstration project, and guides students to learn and explore independently. Different guidance methods are used in different sub-projects based on the characteristics of sub-projects and the original knowledge structure of students. For example, in the feasibility analysis sub-project of Cangshan online bookstore, the feasibility analysis involves a wide range of knowledge and is difficult, and the students lack the experience of analysis and research, I have provided more guidance and examples. In the specific page planning project of "Cangshan Online Bookstore", because there is no fixed mode for specific page planning and the students have already learned "online page production", the author only provides necessary guidance and troubleshooting. The project teaching guidance and demonstration work is the guarantee for the smooth completion of the project. It must follow the progress of the project, but cannot allow students to rely too much on teachers. The students should be guided to learn independently ...... remaining full text>