m_Orchestrate learning system--- thirty 、 In the project dist What do files usually do

One 、 summary

One sentence summary :

Bootstrap switch:dist The catalog is final js and css Of

dist distribution

dist Directory is distribution, That is, the release of finished products

1、github Clone code above git clone https://github.com/fry404006308/m_Orchestrate.git How to solve the problem that the file name is too long when the command is running ?

git To configure
github download

a、git clone https://github.com/fry404006308/m_Orchestrate.git To get git To configure

b、 Directly from github Download above zip Code

2、 Nice selection box ?

data-am-selected

More data-am-selected="{btnSize: 'sm'}", Not only has the function changed , The style has changed a lot

 <div class="am-form-group" style="margin-bottom: 0;display: inline-block;">
<select id="group_view_note">
{volist name="base_class_group" id="vo"}
<option value="{$vo.gid}">{$vo.gname}</option>
{/volist}
</select>
<span class="am-form-caret"></span>
</div>
<div class="am-form-group" style="margin-bottom: 0;display: inline-block;">
<select data-am-selected="{btnSize: 'sm'}" id="group_view_note">
{volist name="base_class_group" id="vo"}
<option value="{$vo.gid}">{$vo.gname}</option>
{/volist}
</select>
</div>

3、 Under the control of a teacher, student groups can view data from each other , Not your own group , Add notes function button disappear function how to achieve ?

Parameters

Both your group and the current visiting group will pass parameters , So compare it

4、 Under the control of the teacher, groups of students in the same class can view data from each other ?

Database fields panel Parameters

a、 Database fields : A field is stored in the database student_can_check_dif_group, The teacher used a checkbox Control the field , Allowing groups of students to look at each other is 1, It's not allowed for student groups to look at each other 0,

b、 panel : When the value of this field is 1 When , Group panel can be selected for student display ( That's one select You can select different groups to view the data )

c、 Parameters : Pass the current visiting group and the group of the login student to the page , To control specific functions , If the current group is equal to the group of the login student , Then display the button that can modify the function , Otherwise it doesn't show

5、php Replace all non alphanumeric characters ?

^a-zA-Z0-9
// Remove non alphanumeric characters from class groups 
$str=$val['B'];
$pattern='/[^a-zA-Z0-9]/iuU';
$val['B']=preg_replace($pattern,'',$str);

Only the English numbers of half angles are calculated  
preg_replace('#[^a-z0-9\x4E00-\x9FCF]#iuU', '--', $str);

Contains the full angle and half angle  
preg_replace('#[^a-z0-9\xff10-\xff19\xff21-\xff3a\xff41-\xff5a\x4E00-\x9FCF]#iuU', '--', $str); 
The above rules do not include all Chinese characters , So there's a possibility of manslaughter , But the probability is very low

\xff10-\xff19 Full angle 0-9 
\xff21-\xff3a Full angle A-Z 
\xff41-\xff5a Full angle a-z 
\x4E00-\x9FCF Main Chinese characters ( A little archaic 、 Variant characters are not in this range )

PHP Regular non alphabetic non Chinese characters
/[^a-zA-Z\p{Han}]/u

6、 In some open source frameworks ,dist What does folder mean ?

distribution Release Code

The full name is distribution.

distribution Britain [dɪstrɪ'bjuːʃ(ə)n] beautiful ['dɪstrə'bjʊʃən]: Distribution version 
n. Distribution ; Distribute

In some frameworks , Because development and release are different in content or code form ( Such as the use of Grunt Compression and so on ),

At this time, we need a code to store the final release version , This is it. dist The use of folders .

It's the final release on the server .
If it's open source , Generally put the development version , Not the release version , Because releases are usually all compressed and optimized , Not conducive to open source development .

7、 Conditional comments judge browser version <!--[if lt IE 9]>?

if IE

Determine whether the browser is ie

 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="__ADMIN2__/online_res/html5shiv.min.js"></script>
<script src="__ADMIN2__/online_res/respond.min.js"></script>
<![endif]-->
<!--[if !IE]><!--> except IE All can be recognized <!--<![endif]-->
<!--[if IE]> be-all IE Recognizable <![endif]-->
<!--[if IE 6]> only IE6 Recognizable <![endif]-->
<!--[if lt IE 6]> IE6 as well as IE6 The following versions recognize <![endif]-->
<!--[if gte IE 6]> IE6 as well as IE6 The above version can identify <![endif]-->
<!--[if IE 7]> only IE7 Recognizable <![endif]-->
<!--[if lt IE 7]> IE7 as well as IE7 The following versions recognize <![endif]-->
<!--[if gte IE 7]> IE7 as well as IE7 The above version can identify <![endif]-->
<!--[if IE 8]> only IE8 Recognizable <![endif]-->
<!--[if IE 9]> only IE9 Recognizable <![endif]-->

8、 When the screen is small , It's a big screen 1/4 How to achieve ?

bootstrap row col

bootstrap The grid system of

Notice that this is col-md-3, That is to say md When and lg It's time to take 3 Share ,sm It's time to monopolize

<div class="row">
<div class="col-md-3">
</div>
<div class="col-md-9">
</div>
</div>

9、 The relationship between the front end template and the actual requirements ?

function Abandon

In order to take care of the vast number of users with different needs, templates must integrate a lot of functions

And our actual demand is just a single demand , Therefore, the functions of these templates should be abandoned if they are not needed

Just add it when you need it , It's convenient

10、Bootstrap switch:dist The catalog is final js and css Of ?

dist distribution

dist Directory is distribution, That is, the release of finished products

Two 、 The content is in the summary

 

m_Orchestrate learning system--- thirty 、 In the project dist More articles about what documents are generally for

  1. m_Orchestrate learning system--- 13、 ... and 、thinkphp Does our verifier support multilingualism

    m_Orchestrate learning system--- 13、 ... and .thinkphp Does our verifier support multilingualism One . summary One sentence summary : Support , Not only validator support , Other plug-ins should support Not only thinkphp Support more ...

  2. Deep learning: Thirty-eight (Stacked CNN Brief introduction )

    http://www.cnblogs.com/tornadomeet/archive/2013/05/05/3061457.html Preface : This section is a brief introduction stacked CNN( Deep convolution network ...

  3. NeHe OpenGL course Lesson 38 : Resource file

    from [ translate ]NeHe OpenGL course Preface Statement , this  NeHe OpenGL The tutorial series consists of 51 Blog yarin translate (2010-08-19), This blog is reprinted and slightly revised . Yes NeHe Of OpenGL pipeline ...

  4. Lonely lotus Ling Han taught himself python Day 35 python The file operation for the file operation os Module related content

      Lonely lotus Ling Han taught himself python Day 35 python The file operation for the file operation os Module related content ( The complete learning process screen records the video address at the end of the article , Handwritten notes at the end of the text ) One . After opening the file , Be sure to remember to turn off , So the general way of writing should be ...

  5. Lonely lotus Ling Han taught himself python Day 34 python File operations on file Class object learning

      Lonely lotus Ling Han taught himself python Day 34 python File operations on file Class object learning ( The complete learning process screen records the video address at the end of the article , Handwritten notes at the end of the text ) One .close() When one file Object to execute this method , Will close the current ...

  6. iOS Common files in projects

    iOS The notes - Common files in projects   After a new project , There are so many files , Here are the main ones . 1. file name (1)AppDelegate UIApplication Agent for ,app When there's interference , Go ahead ...

  7. delphi In the project modelsupport Folder

    delphi In the project modelsupport Folder Today, it was written that I suddenly found one more folder .. It's hard to understand   It's hard to see   Delete and rebuild   Finally found   Keep this for reference ;Tools--option--toget ...

  8. iOS So many controllers manage -- Common files in projects

    Common files in projects content syllabus : 1.LaunchScreen 2.info.plist file 3.pch file 1.LaunchScreen xcode5 and xcode6 difference 1.xcode6 No, Framew ...

  9. iOS Common files in projects

    html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,bi ...

Random recommendation

  1. VS2010 debugging C Program , Always flash by

    In today's vs2010 debugging C When it comes to language programs , In a flash , Baidu searched for three solutions , It can be used . 1.   #include<iostream> using namespace std; int ...

  2. ::after::before Clear the float principle

    Let's start with a piece of code <!DOCTYPE html> <html lang="en"> <head> <meta charset="U ...

  3. A simple ASP.NET MVC Examples show how to Knockout JS With the help of , Use TypeScript .

    Preface TypeScript  Is a free and open source programming language developed by Microsoft . It is JavaScript A superset of , And it essentially adds optional static typing and class-based object-oriented programming to the language . Anders · hejlsberg ,C# The chief shelf ...

  4. Netfilter Deep anatomy

         Find this on the Internet Netfilter Well written series , For the convenience of later search , Here is the blog address , Thank God for offering .     --------------------------- The split line starts ---- ...

  5. 【 Reprint 】 error CS0016: Failed to write output file “c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/.........dll”--“ Access denied . ”

    win7 Install in asp.net The problem of Compiler error messages : CS0016: Failed to write to output file. Problem resolution Compile error explain : An error occurred while compiling the resources needed to service the request . Please check the following specific error details and properly ...

  6. babun,windows shell

    babun yes windows A third party on the Internet shell, In this shell You can use almost all of them linux,unix The command above , He can almost replace windows Of shell. babun Several characteristics of : Use bab ...

  7. sdut-2725-The Urge to Merge- Pressure DP

    Put the array up , Go up and down . If the current position is vertical , So the first point is marked as 1. Otherwise, mark as 0. The final state of the sample is : 0 0 1 0 1 0 1 0 0 0 0 0 #include<iostream& ...

  8. yii2 Source learning notes ( 3、 ... and )

    Components (component), yes Yii The base class of the frame , Implemented properties . event . Behavior has three functions , If you need the function of events and behaviors , You need to inherit this class . yii\base\Component Code details <?php /** * @ ...

  9. Ban ios7 Gesture slide back function

    Ban ios7 Gesture slide back function Copyright notice : This article is an original blog article , No reprint without the permission of the blogger . Sometimes , We don't need gesture return , Then you can add the following code to the page : - (void)viewDidAppear:( ...

  10. oracle Server installation and configuration

    from oracle Download from the official website oracle Server side installation package . Two compressed files are downloaded , Both compressed files are unzipped ( Be short of one cannot ) To the same directory , In the end, I'll get a database Folder . double-click database Under folder setup ...