Commit fb5e8e2809140620d97417e88f7f3638350a41a7
0 parents
Exists in
master
Projeto_Adidas
Showing
36 changed files
with
3012 additions
and
0 deletions
Show diff stats
1 | +++ a/ProjetoAdidas/.idea/ProjetoGol.iml | |
... | ... | @@ -0,0 +1,18 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<module type="WEB_MODULE" version="4"> | |
3 | + <component name="NewModuleRootManager"> | |
4 | + <content url="file://$MODULE_DIR$" /> | |
5 | + <orderEntry type="inheritedJdk" /> | |
6 | + <orderEntry type="sourceFolder" forTests="false" /> | |
7 | + <orderEntry type="module-library"> | |
8 | + <library name="PHP Runtime" type="php"> | |
9 | + <CLASSES> | |
10 | + <root url="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/stubs/standard" /> | |
11 | + </CLASSES> | |
12 | + <SOURCES> | |
13 | + <root url="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/stubs/standard" /> | |
14 | + </SOURCES> | |
15 | + </library> | |
16 | + </orderEntry> | |
17 | + </component> | |
18 | +</module> | |
0 | 19 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/.idea/modules.xml | |
... | ... | @@ -0,0 +1,8 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ProjectModuleManager"> | |
4 | + <modules> | |
5 | + <module fileurl="file://$PROJECT_DIR$/.idea/ProjetoGol.iml" filepath="$PROJECT_DIR$/.idea/ProjetoGol.iml" /> | |
6 | + </modules> | |
7 | + </component> | |
8 | +</project> | |
0 | 9 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/.idea/workspace.xml | |
... | ... | @@ -0,0 +1,869 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ChangeListManager"> | |
4 | + <list default="true" id="b3c3cf98-f4ec-4b92-a692-0dd86bf627cd" name="Default" comment="" /> | |
5 | + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | |
6 | + <option name="TRACKING_ENABLED" value="true" /> | |
7 | + <option name="SHOW_DIALOG" value="false" /> | |
8 | + <option name="HIGHLIGHT_CONFLICTS" value="true" /> | |
9 | + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | |
10 | + <option name="LAST_RESOLUTION" value="IGNORE" /> | |
11 | + </component> | |
12 | + <component name="CreatePatchCommitExecutor"> | |
13 | + <option name="PATCH_PATH" value="" /> | |
14 | + </component> | |
15 | + <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" /> | |
16 | + <component name="FileEditorManager"> | |
17 | + <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | |
18 | + <file leaf-file-name="ConfigController.php" pinned="false" current-in-tab="true"> | |
19 | + <entry file="file://$PROJECT_DIR$/adm/config/ConfigController.php"> | |
20 | + <provider selected="true" editor-type-id="text-editor"> | |
21 | + <state relative-caret-position="508"> | |
22 | + <caret line="124" column="36" lean-forward="true" selection-start-line="124" selection-start-column="36" selection-end-line="124" selection-end-column="36" /> | |
23 | + <folding> | |
24 | + <marker date="1526957468881" expanded="true" signature="6197:6315" ph="..." /> | |
25 | + </folding> | |
26 | + </state> | |
27 | + </provider> | |
28 | + </entry> | |
29 | + </file> | |
30 | + <file leaf-file-name="listarUsers.php" pinned="false" current-in-tab="false"> | |
31 | + <entry file="file://$PROJECT_DIR$/adm/views/users/listarUsers.php"> | |
32 | + <provider selected="true" editor-type-id="text-editor"> | |
33 | + <state relative-caret-position="374"> | |
34 | + <caret line="44" column="10" lean-forward="false" selection-start-line="44" selection-start-column="10" selection-end-line="44" selection-end-column="10" /> | |
35 | + <folding /> | |
36 | + </state> | |
37 | + </provider> | |
38 | + </entry> | |
39 | + </file> | |
40 | + <file leaf-file-name="signin.css" pinned="false" current-in-tab="false"> | |
41 | + <entry file="file://$PROJECT_DIR$/adm/assets/css/signin.css"> | |
42 | + <provider selected="true" editor-type-id="text-editor"> | |
43 | + <state relative-caret-position="120"> | |
44 | + <caret line="12" column="30" lean-forward="false" selection-start-line="12" selection-start-column="30" selection-end-line="12" selection-end-column="30" /> | |
45 | + <folding /> | |
46 | + </state> | |
47 | + </provider> | |
48 | + </entry> | |
49 | + </file> | |
50 | + <file leaf-file-name="ConfigView.php" pinned="false" current-in-tab="false"> | |
51 | + <entry file="file://$PROJECT_DIR$/adm/config/ConfigView.php"> | |
52 | + <provider selected="true" editor-type-id="text-editor"> | |
53 | + <state relative-caret-position="397"> | |
54 | + <caret line="30" column="31" lean-forward="true" selection-start-line="30" selection-start-column="31" selection-end-line="30" selection-end-column="31" /> | |
55 | + <folding /> | |
56 | + </state> | |
57 | + </provider> | |
58 | + </entry> | |
59 | + </file> | |
60 | + <file leaf-file-name="index.php" pinned="false" current-in-tab="false"> | |
61 | + <entry file="file://$PROJECT_DIR$/adm/views/home/index.php"> | |
62 | + <provider selected="true" editor-type-id="text-editor"> | |
63 | + <state relative-caret-position="140"> | |
64 | + <caret line="7" column="31" lean-forward="false" selection-start-line="7" selection-start-column="31" selection-end-line="7" selection-end-column="31" /> | |
65 | + <folding /> | |
66 | + </state> | |
67 | + </provider> | |
68 | + </entry> | |
69 | + </file> | |
70 | + <file leaf-file-name="ControllerAuth.php" pinned="false" current-in-tab="false"> | |
71 | + <entry file="file://$PROJECT_DIR$/adm/controllers/ControllerAuth.php"> | |
72 | + <provider selected="true" editor-type-id="text-editor"> | |
73 | + <state relative-caret-position="-192"> | |
74 | + <caret line="20" column="62" lean-forward="false" selection-start-line="20" selection-start-column="62" selection-end-line="20" selection-end-column="62" /> | |
75 | + <folding> | |
76 | + <marker date="1526954094842" expanded="true" signature="1141:1235" ph="..." /> | |
77 | + <marker date="1526954094842" expanded="true" signature="1576:1668" ph="..." /> | |
78 | + </folding> | |
79 | + </state> | |
80 | + </provider> | |
81 | + </entry> | |
82 | + </file> | |
83 | + <file leaf-file-name="menu_antigo.php" pinned="false" current-in-tab="false"> | |
84 | + <entry file="file://$PROJECT_DIR$/adm/views/includes/menu_antigo.php"> | |
85 | + <provider selected="true" editor-type-id="text-editor"> | |
86 | + <state relative-caret-position="-186"> | |
87 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
88 | + <folding /> | |
89 | + </state> | |
90 | + </provider> | |
91 | + </entry> | |
92 | + </file> | |
93 | + <file leaf-file-name="login.php" pinned="false" current-in-tab="false"> | |
94 | + <entry file="file://$PROJECT_DIR$/adm/views/auth/login.php"> | |
95 | + <provider selected="true" editor-type-id="text-editor"> | |
96 | + <state relative-caret-position="194"> | |
97 | + <caret line="27" column="20" lean-forward="false" selection-start-line="27" selection-start-column="20" selection-end-line="27" selection-end-column="20" /> | |
98 | + <folding /> | |
99 | + </state> | |
100 | + </provider> | |
101 | + </entry> | |
102 | + </file> | |
103 | + <file leaf-file-name="index.php" pinned="false" current-in-tab="false"> | |
104 | + <entry file="file://$PROJECT_DIR$/adm/index.php"> | |
105 | + <provider selected="true" editor-type-id="text-editor"> | |
106 | + <state relative-caret-position="160"> | |
107 | + <caret line="8" column="2" lean-forward="false" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="2" /> | |
108 | + <folding /> | |
109 | + </state> | |
110 | + </provider> | |
111 | + </entry> | |
112 | + </file> | |
113 | + </leaf> | |
114 | + </component> | |
115 | + <component name="FindInProjectRecents"> | |
116 | + <findStrings> | |
117 | + <find>resulta</find> | |
118 | + <find>resul</find> | |
119 | + <find>result</find> | |
120 | + </findStrings> | |
121 | + </component> | |
122 | + <component name="IdeDocumentHistory"> | |
123 | + <option name="CHANGED_PATHS"> | |
124 | + <list> | |
125 | + <option value="$PROJECT_DIR$/teste.html" /> | |
126 | + <option value="$PROJECT_DIR$/admin/views/listarUsers.php" /> | |
127 | + <option value="$PROJECT_DIR$/admin/views/inserirUsers.php" /> | |
128 | + <option value="$PROJECT_DIR$/admin/models/users.php" /> | |
129 | + <option value="$PROJECT_DIR$/admin/controllers/ControllerUsers.php" /> | |
130 | + <option value="$PROJECT_DIR$/admin/models/ModelsUsers.php" /> | |
131 | + <option value="$PROJECT_DIR$/admin/htaccess.txt" /> | |
132 | + <option value="$PROJECT_DIR$/admin/config/Config.php" /> | |
133 | + <option value="$PROJECT_DIR$/admin/index.php" /> | |
134 | + <option value="$PROJECT_DIR$/admin/config/ConfigController.php" /> | |
135 | + <option value="$PROJECT_DIR$/admin/.htaccess" /> | |
136 | + <option value="$PROJECT_DIR$/adm/.htaccess" /> | |
137 | + <option value="$PROJECT_DIR$/adm/models/helper/ModelsConn.php" /> | |
138 | + <option value="$PROJECT_DIR$/adm/views/users/visualizarUsers.php" /> | |
139 | + <option value="$PROJECT_DIR$/../../testando/ProjetoGol/adm/.htaccess" /> | |
140 | + <option value="$PROJECT_DIR$/../../testando/ProjetoGol/adm/models/ModelsConn.php" /> | |
141 | + <option value="$PROJECT_DIR$/../../testando/ProjetoGol/adm/config/Config.php" /> | |
142 | + <option value="$PROJECT_DIR$/../../testando/ProjetoGol/adm/models/helper/ModelsConn.php" /> | |
143 | + <option value="$PROJECT_DIR$/../../testando/ProjetoGol/adm/index.php" /> | |
144 | + <option value="$PROJECT_DIR$/adm/views/users/inserirUsers.php" /> | |
145 | + <option value="$PROJECT_DIR$/adm/models/helper/ModelsCreate.php" /> | |
146 | + <option value="$PROJECT_DIR$/../HistoricosProjetos/ProjetoGol/admin/controllers/ControllerUsers.php" /> | |
147 | + <option value="$PROJECT_DIR$/adm/views/users/editarUsers.php" /> | |
148 | + <option value="$PROJECT_DIR$/adm/models/helper/ModelsUpdate.php" /> | |
149 | + <option value="$PROJECT_DIR$/adm/models/helper/ModelsDelete.php" /> | |
150 | + <option value="$PROJECT_DIR$/adm/models/ModelsUsers.php" /> | |
151 | + <option value="$PROJECT_DIR$/adm/controllers/ControllerUsers.php" /> | |
152 | + <option value="$PROJECT_DIR$/adm/models/helper/ModelsRead.php" /> | |
153 | + <option value="$PROJECT_DIR$/adm/config/Config.php" /> | |
154 | + <option value="$PROJECT_DIR$/adm/views/users/home/index.php" /> | |
155 | + <option value="$PROJECT_DIR$/adm/controllers/ControllerHome.php" /> | |
156 | + <option value="$PROJECT_DIR$/adm/models/ModelsAuth.php" /> | |
157 | + <option value="$PROJECT_DIR$/adm/controllers/ControllerAuth.php" /> | |
158 | + <option value="$PROJECT_DIR$/../HistoricosProjetos/ProjetoGol/adm/controllers/ControllerAuth.php" /> | |
159 | + <option value="$PROJECT_DIR$/adm/index.php" /> | |
160 | + <option value="$PROJECT_DIR$/adm/config/ConfigController.php" /> | |
161 | + <option value="$PROJECT_DIR$/adm/assets/css/signin.css" /> | |
162 | + <option value="$PROJECT_DIR$/adm/views/auth/login.php" /> | |
163 | + <option value="$PROJECT_DIR$/adm/views/includes/menu.php" /> | |
164 | + <option value="$PROJECT_DIR$/adm/views/includes/header.php" /> | |
165 | + <option value="$PROJECT_DIR$/adm/views/includes/footer.php" /> | |
166 | + <option value="$PROJECT_DIR$/adm/config/ConfigView.php" /> | |
167 | + <option value="$PROJECT_DIR$/adm/views/home/index.php" /> | |
168 | + <option value="$PROJECT_DIR$/adm/views/users/listarUsers.php" /> | |
169 | + </list> | |
170 | + </option> | |
171 | + </component> | |
172 | + <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> | |
173 | + <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> | |
174 | + <component name="JsGulpfileManager"> | |
175 | + <detection-done>true</detection-done> | |
176 | + <sorting>DEFINITION_ORDER</sorting> | |
177 | + </component> | |
178 | + <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> | |
179 | + <component name="ProjectFrameBounds"> | |
180 | + <option name="x" value="-8" /> | |
181 | + <option name="y" value="-8" /> | |
182 | + <option name="width" value="1382" /> | |
183 | + <option name="height" value="744" /> | |
184 | + </component> | |
185 | + <component name="ProjectView"> | |
186 | + <navigator currentView="ProjectPane" proportions="" version="1"> | |
187 | + <flattenPackages /> | |
188 | + <showMembers /> | |
189 | + <showModules /> | |
190 | + <showLibraryContents /> | |
191 | + <hideEmptyPackages /> | |
192 | + <abbreviatePackageNames /> | |
193 | + <autoscrollToSource /> | |
194 | + <autoscrollFromSource /> | |
195 | + <sortByType /> | |
196 | + <manualOrder /> | |
197 | + <foldersAlwaysOnTop value="true" /> | |
198 | + </navigator> | |
199 | + <panes> | |
200 | + <pane id="Scope" /> | |
201 | + <pane id="Scratches" /> | |
202 | + <pane id="ProjectPane"> | |
203 | + <subPane> | |
204 | + <PATH> | |
205 | + <PATH_ELEMENT> | |
206 | + <option name="myItemId" value="ProjetoGol" /> | |
207 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
208 | + </PATH_ELEMENT> | |
209 | + <PATH_ELEMENT> | |
210 | + <option name="myItemId" value="ProjetoGol" /> | |
211 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
212 | + </PATH_ELEMENT> | |
213 | + </PATH> | |
214 | + <PATH> | |
215 | + <PATH_ELEMENT> | |
216 | + <option name="myItemId" value="ProjetoGol" /> | |
217 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
218 | + </PATH_ELEMENT> | |
219 | + <PATH_ELEMENT> | |
220 | + <option name="myItemId" value="ProjetoGol" /> | |
221 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
222 | + </PATH_ELEMENT> | |
223 | + <PATH_ELEMENT> | |
224 | + <option name="myItemId" value="adm" /> | |
225 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
226 | + </PATH_ELEMENT> | |
227 | + </PATH> | |
228 | + <PATH> | |
229 | + <PATH_ELEMENT> | |
230 | + <option name="myItemId" value="ProjetoGol" /> | |
231 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
232 | + </PATH_ELEMENT> | |
233 | + <PATH_ELEMENT> | |
234 | + <option name="myItemId" value="ProjetoGol" /> | |
235 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
236 | + </PATH_ELEMENT> | |
237 | + <PATH_ELEMENT> | |
238 | + <option name="myItemId" value="adm" /> | |
239 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
240 | + </PATH_ELEMENT> | |
241 | + <PATH_ELEMENT> | |
242 | + <option name="myItemId" value="views" /> | |
243 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
244 | + </PATH_ELEMENT> | |
245 | + <PATH_ELEMENT> | |
246 | + <option name="myItemId" value="users" /> | |
247 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
248 | + </PATH_ELEMENT> | |
249 | + </PATH> | |
250 | + <PATH> | |
251 | + <PATH_ELEMENT> | |
252 | + <option name="myItemId" value="ProjetoGol" /> | |
253 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
254 | + </PATH_ELEMENT> | |
255 | + <PATH_ELEMENT> | |
256 | + <option name="myItemId" value="ProjetoGol" /> | |
257 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
258 | + </PATH_ELEMENT> | |
259 | + <PATH_ELEMENT> | |
260 | + <option name="myItemId" value="adm" /> | |
261 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
262 | + </PATH_ELEMENT> | |
263 | + <PATH_ELEMENT> | |
264 | + <option name="myItemId" value="views" /> | |
265 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
266 | + </PATH_ELEMENT> | |
267 | + <PATH_ELEMENT> | |
268 | + <option name="myItemId" value="includes" /> | |
269 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
270 | + </PATH_ELEMENT> | |
271 | + </PATH> | |
272 | + <PATH> | |
273 | + <PATH_ELEMENT> | |
274 | + <option name="myItemId" value="ProjetoGol" /> | |
275 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
276 | + </PATH_ELEMENT> | |
277 | + <PATH_ELEMENT> | |
278 | + <option name="myItemId" value="ProjetoGol" /> | |
279 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
280 | + </PATH_ELEMENT> | |
281 | + <PATH_ELEMENT> | |
282 | + <option name="myItemId" value="adm" /> | |
283 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
284 | + </PATH_ELEMENT> | |
285 | + <PATH_ELEMENT> | |
286 | + <option name="myItemId" value="views" /> | |
287 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
288 | + </PATH_ELEMENT> | |
289 | + <PATH_ELEMENT> | |
290 | + <option name="myItemId" value="home" /> | |
291 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
292 | + </PATH_ELEMENT> | |
293 | + </PATH> | |
294 | + <PATH> | |
295 | + <PATH_ELEMENT> | |
296 | + <option name="myItemId" value="ProjetoGol" /> | |
297 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
298 | + </PATH_ELEMENT> | |
299 | + <PATH_ELEMENT> | |
300 | + <option name="myItemId" value="ProjetoGol" /> | |
301 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
302 | + </PATH_ELEMENT> | |
303 | + <PATH_ELEMENT> | |
304 | + <option name="myItemId" value="adm" /> | |
305 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
306 | + </PATH_ELEMENT> | |
307 | + <PATH_ELEMENT> | |
308 | + <option name="myItemId" value="views" /> | |
309 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
310 | + </PATH_ELEMENT> | |
311 | + <PATH_ELEMENT> | |
312 | + <option name="myItemId" value="auth" /> | |
313 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
314 | + </PATH_ELEMENT> | |
315 | + </PATH> | |
316 | + <PATH> | |
317 | + <PATH_ELEMENT> | |
318 | + <option name="myItemId" value="ProjetoGol" /> | |
319 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
320 | + </PATH_ELEMENT> | |
321 | + <PATH_ELEMENT> | |
322 | + <option name="myItemId" value="ProjetoGol" /> | |
323 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
324 | + </PATH_ELEMENT> | |
325 | + <PATH_ELEMENT> | |
326 | + <option name="myItemId" value="adm" /> | |
327 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
328 | + </PATH_ELEMENT> | |
329 | + <PATH_ELEMENT> | |
330 | + <option name="myItemId" value="models" /> | |
331 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
332 | + </PATH_ELEMENT> | |
333 | + </PATH> | |
334 | + <PATH> | |
335 | + <PATH_ELEMENT> | |
336 | + <option name="myItemId" value="ProjetoGol" /> | |
337 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
338 | + </PATH_ELEMENT> | |
339 | + <PATH_ELEMENT> | |
340 | + <option name="myItemId" value="ProjetoGol" /> | |
341 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
342 | + </PATH_ELEMENT> | |
343 | + <PATH_ELEMENT> | |
344 | + <option name="myItemId" value="adm" /> | |
345 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
346 | + </PATH_ELEMENT> | |
347 | + <PATH_ELEMENT> | |
348 | + <option name="myItemId" value="controllers" /> | |
349 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
350 | + </PATH_ELEMENT> | |
351 | + </PATH> | |
352 | + <PATH> | |
353 | + <PATH_ELEMENT> | |
354 | + <option name="myItemId" value="ProjetoGol" /> | |
355 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
356 | + </PATH_ELEMENT> | |
357 | + <PATH_ELEMENT> | |
358 | + <option name="myItemId" value="ProjetoGol" /> | |
359 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
360 | + </PATH_ELEMENT> | |
361 | + <PATH_ELEMENT> | |
362 | + <option name="myItemId" value="adm" /> | |
363 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
364 | + </PATH_ELEMENT> | |
365 | + <PATH_ELEMENT> | |
366 | + <option name="myItemId" value="config" /> | |
367 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
368 | + </PATH_ELEMENT> | |
369 | + </PATH> | |
370 | + <PATH> | |
371 | + <PATH_ELEMENT> | |
372 | + <option name="myItemId" value="ProjetoGol" /> | |
373 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
374 | + </PATH_ELEMENT> | |
375 | + <PATH_ELEMENT> | |
376 | + <option name="myItemId" value="ProjetoGol" /> | |
377 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
378 | + </PATH_ELEMENT> | |
379 | + <PATH_ELEMENT> | |
380 | + <option name="myItemId" value="adm" /> | |
381 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
382 | + </PATH_ELEMENT> | |
383 | + <PATH_ELEMENT> | |
384 | + <option name="myItemId" value="assets" /> | |
385 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
386 | + </PATH_ELEMENT> | |
387 | + <PATH_ELEMENT> | |
388 | + <option name="myItemId" value="css" /> | |
389 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
390 | + </PATH_ELEMENT> | |
391 | + </PATH> | |
392 | + </subPane> | |
393 | + </pane> | |
394 | + </panes> | |
395 | + </component> | |
396 | + <component name="PropertiesComponent"> | |
397 | + <property name="settings.editor.selected.configurable" value="reference.settingsdialog.IDE.editor.colors.Font" /> | |
398 | + <property name="WebServerToolWindowFactoryState" value="false" /> | |
399 | + <property name="js.eslint.eslintPackage" value="" /> | |
400 | + <property name="last_opened_file_path" value="$PROJECT_DIR$/../../testando/ProjetoGol" /> | |
401 | + </component> | |
402 | + <component name="RecentsManager"> | |
403 | + <key name="MoveFile.RECENT_KEYS"> | |
404 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\assets\css" /> | |
405 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\views" /> | |
406 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\views\users" /> | |
407 | + </key> | |
408 | + <key name="CopyFile.RECENT_KEYS"> | |
409 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\views\includes" /> | |
410 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\views\auth" /> | |
411 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\views\users\home" /> | |
412 | + <recent name="C:\wamp64\www\DW\ProjetoGol\adm\views\users" /> | |
413 | + </key> | |
414 | + </component> | |
415 | + <component name="RunManager"> | |
416 | + <configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor"> | |
417 | + <config-file value="" /> | |
418 | + <node-interpreter value="project" /> | |
419 | + <envs /> | |
420 | + <method /> | |
421 | + </configuration> | |
422 | + <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> | |
423 | + <method /> | |
424 | + </configuration> | |
425 | + <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir=""> | |
426 | + <method /> | |
427 | + </configuration> | |
428 | + <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit"> | |
429 | + <TestRunner /> | |
430 | + <method /> | |
431 | + </configuration> | |
432 | + <configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat"> | |
433 | + <BehatRunner /> | |
434 | + <method /> | |
435 | + </configuration> | |
436 | + <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console"> | |
437 | + <method /> | |
438 | + </configuration> | |
439 | + <configuration default="true" type="PhpSpecConfigurationType" factoryName="PHPSpec"> | |
440 | + <PhpTestRunnerSettings /> | |
441 | + <method /> | |
442 | + </configuration> | |
443 | + <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> | |
444 | + <node-interpreter>project</node-interpreter> | |
445 | + <node-options /> | |
446 | + <gulpfile /> | |
447 | + <tasks /> | |
448 | + <arguments /> | |
449 | + <envs /> | |
450 | + <method /> | |
451 | + </configuration> | |
452 | + <configuration default="true" type="js.build_tools.npm" factoryName="npm"> | |
453 | + <command value="run" /> | |
454 | + <scripts /> | |
455 | + <node-interpreter value="project" /> | |
456 | + <envs /> | |
457 | + <method /> | |
458 | + </configuration> | |
459 | + <configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha"> | |
460 | + <node-interpreter>project</node-interpreter> | |
461 | + <node-options /> | |
462 | + <working-directory /> | |
463 | + <pass-parent-env>true</pass-parent-env> | |
464 | + <envs /> | |
465 | + <ui /> | |
466 | + <extra-mocha-options /> | |
467 | + <test-kind>DIRECTORY</test-kind> | |
468 | + <test-directory /> | |
469 | + <recursive>false</recursive> | |
470 | + <method /> | |
471 | + </configuration> | |
472 | + </component> | |
473 | + <component name="ShelveChangesManager" show_recycled="false"> | |
474 | + <option name="remove_strategy" value="false" /> | |
475 | + </component> | |
476 | + <component name="TaskManager"> | |
477 | + <task active="true" id="Default" summary="Default task"> | |
478 | + <changelist id="b3c3cf98-f4ec-4b92-a692-0dd86bf627cd" name="Default" comment="" /> | |
479 | + <created>1523624394982</created> | |
480 | + <option name="number" value="Default" /> | |
481 | + <option name="presentableId" value="Default" /> | |
482 | + <updated>1523624394982</updated> | |
483 | + <workItem from="1523624399396" duration="1776000" /> | |
484 | + <workItem from="1523919737806" duration="8812000" /> | |
485 | + <workItem from="1524230097702" duration="27927000" /> | |
486 | + <workItem from="1524422758574" duration="9161000" /> | |
487 | + <workItem from="1524825104800" duration="10429000" /> | |
488 | + <workItem from="1525824113071" duration="149000" /> | |
489 | + <workItem from="1526048744543" duration="34332000" /> | |
490 | + </task> | |
491 | + <servers /> | |
492 | + </component> | |
493 | + <component name="TimeTrackingManager"> | |
494 | + <option name="totallyTimeSpent" value="92586000" /> | |
495 | + </component> | |
496 | + <component name="ToolWindowManager"> | |
497 | + <frame x="-8" y="-8" width="1382" height="744" extended-state="6" /> | |
498 | + <editor active="true" /> | |
499 | + <layout> | |
500 | + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25189108" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | |
501 | + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | |
502 | + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> | |
503 | + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | |
504 | + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | |
505 | + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |
506 | + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | |
507 | + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | |
508 | + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | |
509 | + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | |
510 | + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | |
511 | + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | |
512 | + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | |
513 | + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | |
514 | + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32991454" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |
515 | + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |
516 | + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | |
517 | + </layout> | |
518 | + </component> | |
519 | + <component name="TypeScriptGeneratedFilesManager"> | |
520 | + <option name="processedProjectFiles" value="true" /> | |
521 | + </component> | |
522 | + <component name="VcsContentAnnotationSettings"> | |
523 | + <option name="myLimit" value="2678400000" /> | |
524 | + </component> | |
525 | + <component name="XDebuggerManager"> | |
526 | + <breakpoint-manager /> | |
527 | + <watches-manager /> | |
528 | + </component> | |
529 | + <component name="editorHistoryManager"> | |
530 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte02-MVC/aula38-mvc-p9/views/usuario/listarUsuario.php"> | |
531 | + <provider selected="true" editor-type-id="text-editor"> | |
532 | + <state relative-caret-position="54"> | |
533 | + <caret line="2" column="12" lean-forward="false" selection-start-line="2" selection-start-column="12" selection-end-line="2" selection-end-column="12" /> | |
534 | + </state> | |
535 | + </provider> | |
536 | + </entry> | |
537 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte02-MVC/aula38-mvc-p9/views/usuario/visualizarUsuario.php"> | |
538 | + <provider selected="true" editor-type-id="text-editor"> | |
539 | + <state relative-caret-position="0"> | |
540 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
541 | + </state> | |
542 | + </provider> | |
543 | + </entry> | |
544 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte03-LoginPHPOO/CodigoFonte/139-login-atualiza-senha-link-email/celkelogin/adm/views/usuario/visualizarUsuario.php"> | |
545 | + <provider selected="true" editor-type-id="text-editor"> | |
546 | + <state relative-caret-position="0"> | |
547 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
548 | + </state> | |
549 | + </provider> | |
550 | + </entry> | |
551 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte03-LoginPHPOO/CodigoFonte/139-login-atualiza-senha-link-email/celkelogin/adm/models/helper/ModelsConn.php"> | |
552 | + <provider selected="true" editor-type-id="text-editor"> | |
553 | + <state relative-caret-position="0"> | |
554 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
555 | + </state> | |
556 | + </provider> | |
557 | + </entry> | |
558 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte03-LoginPHPOO/CodigoFonte/139-login-atualiza-senha-link-email/celkelogin/adm/views/usuario/editarUsuario.php"> | |
559 | + <provider selected="true" editor-type-id="text-editor"> | |
560 | + <state relative-caret-position="0"> | |
561 | + <caret line="43" column="34" lean-forward="false" selection-start-line="43" selection-start-column="34" selection-end-line="43" selection-end-column="34" /> | |
562 | + </state> | |
563 | + </provider> | |
564 | + </entry> | |
565 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte03-LoginPHPOO/CodigoFonte/139-login-atualiza-senha-link-email/celkelogin/adm/models/helper/ModelsCreate.php"> | |
566 | + <provider selected="true" editor-type-id="text-editor"> | |
567 | + <state relative-caret-position="0"> | |
568 | + <caret line="20" column="19" lean-forward="false" selection-start-line="20" selection-start-column="19" selection-end-line="20" selection-end-column="19" /> | |
569 | + </state> | |
570 | + </provider> | |
571 | + </entry> | |
572 | + <entry file="file://$PROJECT_DIR$/teste.html" /> | |
573 | + <entry file="file://$PROJECT_DIR$/admin/views/listarUsers.php" /> | |
574 | + <entry file="file://$PROJECT_DIR$/admin/models/ModelsUsers.php" /> | |
575 | + <entry file="file://$PROJECT_DIR$/admin/controllers/ControllerUsers.php" /> | |
576 | + <entry file="file://$PROJECT_DIR$/admin/views/inserirUsers.php" /> | |
577 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte03-LoginPHPOO/CodigoFonte/139-login-atualiza-senha-link-email/celkelogin/adm/views/usuario/verPerfil.php"> | |
578 | + <provider selected="true" editor-type-id="text-editor"> | |
579 | + <state relative-caret-position="262"> | |
580 | + <caret line="38" column="65" lean-forward="false" selection-start-line="38" selection-start-column="65" selection-end-line="38" selection-end-column="65" /> | |
581 | + </state> | |
582 | + </provider> | |
583 | + </entry> | |
584 | + <entry file="file://$PROJECT_DIR$/admin/config/Config.php" /> | |
585 | + <entry file="file://$PROJECT_DIR$/admin/index.php" /> | |
586 | + <entry file="file://$PROJECT_DIR$/admin/config/ConfigController.php" /> | |
587 | + <entry file="file://$PROJECT_DIR$/admin/.htaccess" /> | |
588 | + <entry file="file://$PROJECT_DIR$/adm/.htaccess"> | |
589 | + <provider selected="true" editor-type-id="text-editor"> | |
590 | + <state relative-caret-position="110"> | |
591 | + <caret line="5" column="0" lean-forward="false" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="31" /> | |
592 | + </state> | |
593 | + </provider> | |
594 | + </entry> | |
595 | + <entry file="file://$PROJECT_DIR$/../../testando/ProjetoGol/adm/.htaccess"> | |
596 | + <provider selected="true" editor-type-id="text-editor"> | |
597 | + <state relative-caret-position="100"> | |
598 | + <caret line="5" column="21" lean-forward="false" selection-start-line="5" selection-start-column="21" selection-end-line="5" selection-end-column="21" /> | |
599 | + </state> | |
600 | + </provider> | |
601 | + </entry> | |
602 | + <entry file="file://$PROJECT_DIR$/../../testando/ProjetoGol/adm/models/ModelsConn.php" /> | |
603 | + <entry file="file://$PROJECT_DIR$/adm/models/helper/ModelsConn.php"> | |
604 | + <provider selected="true" editor-type-id="text-editor"> | |
605 | + <state relative-caret-position="360"> | |
606 | + <caret line="18" column="12" lean-forward="false" selection-start-line="18" selection-start-column="12" selection-end-line="18" selection-end-column="12" /> | |
607 | + <folding /> | |
608 | + </state> | |
609 | + </provider> | |
610 | + </entry> | |
611 | + <entry file="file://$PROJECT_DIR$/../../testando/ProjetoGol/adm/index.php"> | |
612 | + <provider selected="true" editor-type-id="text-editor"> | |
613 | + <state relative-caret-position="128"> | |
614 | + <caret line="7" column="7" lean-forward="false" selection-start-line="7" selection-start-column="7" selection-end-line="7" selection-end-column="7" /> | |
615 | + </state> | |
616 | + </provider> | |
617 | + </entry> | |
618 | + <entry file="file://$PROJECT_DIR$/../../testando/ProjetoGol/adm/models/helper/ModelsConn.php" /> | |
619 | + <entry file="file://$PROJECT_DIR$/../../testando/ProjetoGol/adm/config/Config.php"> | |
620 | + <provider selected="true" editor-type-id="text-editor"> | |
621 | + <state relative-caret-position="280"> | |
622 | + <caret line="14" column="22" lean-forward="false" selection-start-line="14" selection-start-column="22" selection-end-line="14" selection-end-column="22" /> | |
623 | + </state> | |
624 | + </provider> | |
625 | + </entry> | |
626 | + <entry file="file://$PROJECT_DIR$/adm/views/users/visualizarUsers.php"> | |
627 | + <provider selected="true" editor-type-id="text-editor"> | |
628 | + <state relative-caret-position="437"> | |
629 | + <caret line="26" column="7" lean-forward="true" selection-start-line="26" selection-start-column="7" selection-end-line="26" selection-end-column="7" /> | |
630 | + <folding /> | |
631 | + </state> | |
632 | + </provider> | |
633 | + </entry> | |
634 | + <entry file="file://$PROJECT_DIR$/adm/views/users/inserirUsers.php"> | |
635 | + <provider selected="true" editor-type-id="text-editor"> | |
636 | + <state relative-caret-position="640"> | |
637 | + <caret line="32" column="0" lean-forward="true" selection-start-line="32" selection-start-column="0" selection-end-line="32" selection-end-column="0" /> | |
638 | + <folding /> | |
639 | + </state> | |
640 | + </provider> | |
641 | + </entry> | |
642 | + <entry file="file://$PROJECT_DIR$/../HistoricosProjetos/ProjetoGol/admin/config/Config.php" /> | |
643 | + <entry file="file://$PROJECT_DIR$/../HistoricosProjetos/ProjetoGol/admin/controllers/ControllerUsers.php" /> | |
644 | + <entry file="file://$PROJECT_DIR$/adm/models/helper/ModelsCreate.php"> | |
645 | + <provider selected="true" editor-type-id="text-editor"> | |
646 | + <state relative-caret-position="980"> | |
647 | + <caret line="49" column="0" lean-forward="false" selection-start-line="49" selection-start-column="0" selection-end-line="49" selection-end-column="0" /> | |
648 | + <folding> | |
649 | + <marker date="1524836045896" expanded="true" signature="553:609" ph="INSERT INTO $... " /> | |
650 | + </folding> | |
651 | + </state> | |
652 | + </provider> | |
653 | + </entry> | |
654 | + <entry file="file://$PROJECT_DIR$/adm/views/users/editarUsers.php"> | |
655 | + <provider selected="true" editor-type-id="text-editor"> | |
656 | + <state relative-caret-position="102"> | |
657 | + <caret line="14" column="52" lean-forward="true" selection-start-line="14" selection-start-column="52" selection-end-line="14" selection-end-column="52" /> | |
658 | + <folding /> | |
659 | + </state> | |
660 | + </provider> | |
661 | + </entry> | |
662 | + <entry file="file://$PROJECT_DIR$/adm/models/helper/ModelsUpdate.php"> | |
663 | + <provider selected="true" editor-type-id="text-editor"> | |
664 | + <state relative-caret-position="268"> | |
665 | + <caret line="51" column="57" lean-forward="false" selection-start-line="51" selection-start-column="57" selection-end-line="51" selection-end-column="57" /> | |
666 | + <folding> | |
667 | + <marker date="1526346835874" expanded="true" signature="1090:1127" ph="UPDATE ${{$t... " /> | |
668 | + <marker date="1526346835874" expanded="true" signature="1419:1512" ph="..." /> | |
669 | + <marker date="1526346835874" expanded="true" signature="1658:1760" ph="..." /> | |
670 | + </folding> | |
671 | + </state> | |
672 | + </provider> | |
673 | + </entry> | |
674 | + <entry file="file://$PROJECT_DIR$/adm/models/helper/ModelsDelete.php"> | |
675 | + <provider selected="true" editor-type-id="text-editor"> | |
676 | + <state relative-caret-position="488"> | |
677 | + <caret line="59" column="0" lean-forward="true" selection-start-line="59" selection-start-column="0" selection-end-line="59" selection-end-column="0" /> | |
678 | + <folding> | |
679 | + <marker date="1526346918752" expanded="true" signature="924:952" ph="DELETE FROM " /> | |
680 | + <marker date="1526346918752" expanded="true" signature="1223:1315" ph="..." /> | |
681 | + <marker date="1526346918752" expanded="true" signature="1460:1561" ph="..." /> | |
682 | + </folding> | |
683 | + </state> | |
684 | + </provider> | |
685 | + </entry> | |
686 | + <entry file="file://C:/!MeusDados/!CursosCompletos/Celke-PHPOO/Parte03-LoginPHPOO/CodigoFonte/100-login/celkelogin/adm/controllers/ControleHome.php"> | |
687 | + <provider selected="true" editor-type-id="text-editor"> | |
688 | + <state relative-caret-position="0"> | |
689 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
690 | + <folding /> | |
691 | + </state> | |
692 | + </provider> | |
693 | + </entry> | |
694 | + <entry file="file://$PROJECT_DIR$/adm/models/helper/ModelsRead.php"> | |
695 | + <provider selected="true" editor-type-id="text-editor"> | |
696 | + <state relative-caret-position="483"> | |
697 | + <caret line="45" column="0" lean-forward="true" selection-start-line="45" selection-start-column="0" selection-end-line="45" selection-end-column="0" /> | |
698 | + <folding> | |
699 | + <marker date="1526434217171" expanded="true" signature="506:530" ph="SELECT * FRO... $" /> | |
700 | + </folding> | |
701 | + </state> | |
702 | + </provider> | |
703 | + </entry> | |
704 | + <entry file="file://$PROJECT_DIR$/adm/models/ModelsUsers.php"> | |
705 | + <provider selected="true" editor-type-id="text-editor"> | |
706 | + <state relative-caret-position="260"> | |
707 | + <caret line="73" column="12" lean-forward="false" selection-start-line="73" selection-start-column="12" selection-end-line="77" selection-end-column="26" /> | |
708 | + <folding> | |
709 | + <marker date="1526347556217" expanded="true" signature="1090:1208" ph="..." /> | |
710 | + <marker date="1526347556217" expanded="true" signature="1643:1782" ph="..." /> | |
711 | + <marker date="1526347556217" expanded="true" signature="2490:2605" ph="..." /> | |
712 | + <marker date="1526347556217" expanded="true" signature="2778:2903" ph="..." /> | |
713 | + <marker date="1526347556217" expanded="true" signature="3372:3480" ph="..." /> | |
714 | + <marker date="1526347556217" expanded="true" signature="3669:3787" ph="..." /> | |
715 | + </folding> | |
716 | + </state> | |
717 | + </provider> | |
718 | + </entry> | |
719 | + <entry file="file://$PROJECT_DIR$/adm/controllers/ControllerUsers.php"> | |
720 | + <provider selected="true" editor-type-id="text-editor"> | |
721 | + <state relative-caret-position="120"> | |
722 | + <caret line="66" column="35" lean-forward="true" selection-start-line="66" selection-start-column="8" selection-end-line="66" selection-end-column="35" /> | |
723 | + <folding> | |
724 | + <marker date="1526348636598" expanded="true" signature="2944:2990" ph="..." /> | |
725 | + <marker date="1526348636598" expanded="true" signature="2944:3039" ph="..." /> | |
726 | + </folding> | |
727 | + </state> | |
728 | + </provider> | |
729 | + </entry> | |
730 | + <entry file="file://$PROJECT_DIR$/adm/controllers/ControllerHome.php"> | |
731 | + <provider selected="true" editor-type-id="text-editor"> | |
732 | + <state relative-caret-position="180"> | |
733 | + <caret line="9" column="0" lean-forward="true" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" /> | |
734 | + <folding /> | |
735 | + </state> | |
736 | + </provider> | |
737 | + </entry> | |
738 | + <entry file="file://$PROJECT_DIR$/adm/models/ModelsAuth.php"> | |
739 | + <provider selected="true" editor-type-id="text-editor"> | |
740 | + <state relative-caret-position="840"> | |
741 | + <caret line="45" column="33" lean-forward="false" selection-start-line="45" selection-start-column="33" selection-end-line="45" selection-end-column="33" /> | |
742 | + <folding> | |
743 | + <marker date="1526942735793" expanded="true" signature="835:922" ph="..." /> | |
744 | + <marker date="1526942735793" expanded="true" signature="1307:1394" ph="..." /> | |
745 | + </folding> | |
746 | + </state> | |
747 | + </provider> | |
748 | + </entry> | |
749 | + <entry file="file://$PROJECT_DIR$/adm/config/Config.php"> | |
750 | + <provider selected="true" editor-type-id="text-editor"> | |
751 | + <state relative-caret-position="88"> | |
752 | + <caret line="12" column="32" lean-forward="false" selection-start-line="12" selection-start-column="32" selection-end-line="12" selection-end-column="32" /> | |
753 | + <folding /> | |
754 | + </state> | |
755 | + </provider> | |
756 | + </entry> | |
757 | + <entry file="file://$PROJECT_DIR$/../HistoricosProjetos/ProjetoGol/adm/controllers/ControllerAuth.php"> | |
758 | + <provider selected="true" editor-type-id="text-editor"> | |
759 | + <state relative-caret-position="0"> | |
760 | + <caret line="0" column="5" lean-forward="true" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" /> | |
761 | + <folding> | |
762 | + <marker date="1526954279349" expanded="true" signature="1141:1235" ph="..." /> | |
763 | + </folding> | |
764 | + </state> | |
765 | + </provider> | |
766 | + </entry> | |
767 | + <entry file="file://$PROJECT_DIR$/adm/index.php"> | |
768 | + <provider selected="true" editor-type-id="text-editor"> | |
769 | + <state relative-caret-position="160"> | |
770 | + <caret line="8" column="2" lean-forward="false" selection-start-line="8" selection-start-column="2" selection-end-line="8" selection-end-column="2" /> | |
771 | + <folding /> | |
772 | + </state> | |
773 | + </provider> | |
774 | + </entry> | |
775 | + <entry file="file://$PROJECT_DIR$/adm/assets/css/signin.css"> | |
776 | + <provider selected="true" editor-type-id="text-editor"> | |
777 | + <state relative-caret-position="120"> | |
778 | + <caret line="12" column="30" lean-forward="false" selection-start-line="12" selection-start-column="30" selection-end-line="12" selection-end-column="30" /> | |
779 | + <folding /> | |
780 | + </state> | |
781 | + </provider> | |
782 | + </entry> | |
783 | + <entry file="file://$PROJECT_DIR$/adm/views/auth/login.php"> | |
784 | + <provider selected="true" editor-type-id="text-editor"> | |
785 | + <state relative-caret-position="194"> | |
786 | + <caret line="27" column="20" lean-forward="false" selection-start-line="27" selection-start-column="20" selection-end-line="27" selection-end-column="20" /> | |
787 | + <folding /> | |
788 | + </state> | |
789 | + </provider> | |
790 | + </entry> | |
791 | + <entry file="file://$PROJECT_DIR$/adm/views/includes/menu.php"> | |
792 | + <provider selected="true" editor-type-id="text-editor"> | |
793 | + <state relative-caret-position="488"> | |
794 | + <caret line="74" column="6" lean-forward="false" selection-start-line="74" selection-start-column="6" selection-end-line="74" selection-end-column="6" /> | |
795 | + <folding /> | |
796 | + </state> | |
797 | + </provider> | |
798 | + </entry> | |
799 | + <entry file="file://$PROJECT_DIR$/adm/views/includes/header.php"> | |
800 | + <provider selected="true" editor-type-id="text-editor"> | |
801 | + <state relative-caret-position="440"> | |
802 | + <caret line="22" column="21" lean-forward="false" selection-start-line="22" selection-start-column="21" selection-end-line="22" selection-end-column="21" /> | |
803 | + <folding /> | |
804 | + </state> | |
805 | + </provider> | |
806 | + </entry> | |
807 | + <entry file="file://$PROJECT_DIR$/adm/views/includes/footer.php"> | |
808 | + <provider selected="true" editor-type-id="text-editor"> | |
809 | + <state relative-caret-position="260"> | |
810 | + <caret line="13" column="7" lean-forward="false" selection-start-line="13" selection-start-column="7" selection-end-line="13" selection-end-column="7" /> | |
811 | + <folding /> | |
812 | + </state> | |
813 | + </provider> | |
814 | + </entry> | |
815 | + <entry file="file://$PROJECT_DIR$/adm/config/ConfigView.php"> | |
816 | + <provider selected="true" editor-type-id="text-editor"> | |
817 | + <state relative-caret-position="397"> | |
818 | + <caret line="30" column="31" lean-forward="true" selection-start-line="30" selection-start-column="31" selection-end-line="30" selection-end-column="31" /> | |
819 | + <folding /> | |
820 | + </state> | |
821 | + </provider> | |
822 | + </entry> | |
823 | + <entry file="file://$PROJECT_DIR$/adm/views/home/index.php"> | |
824 | + <provider selected="true" editor-type-id="text-editor"> | |
825 | + <state relative-caret-position="140"> | |
826 | + <caret line="7" column="31" lean-forward="false" selection-start-line="7" selection-start-column="31" selection-end-line="7" selection-end-column="31" /> | |
827 | + <folding /> | |
828 | + </state> | |
829 | + </provider> | |
830 | + </entry> | |
831 | + <entry file="file://$PROJECT_DIR$/adm/views/users/listarUsers.php"> | |
832 | + <provider selected="true" editor-type-id="text-editor"> | |
833 | + <state relative-caret-position="374"> | |
834 | + <caret line="44" column="10" lean-forward="false" selection-start-line="44" selection-start-column="10" selection-end-line="44" selection-end-column="10" /> | |
835 | + <folding /> | |
836 | + </state> | |
837 | + </provider> | |
838 | + </entry> | |
839 | + <entry file="file://$PROJECT_DIR$/adm/controllers/ControllerAuth.php"> | |
840 | + <provider selected="true" editor-type-id="text-editor"> | |
841 | + <state relative-caret-position="-192"> | |
842 | + <caret line="20" column="62" lean-forward="false" selection-start-line="20" selection-start-column="62" selection-end-line="20" selection-end-column="62" /> | |
843 | + <folding> | |
844 | + <marker date="1526954094842" expanded="true" signature="1141:1235" ph="..." /> | |
845 | + <marker date="1526954094842" expanded="true" signature="1576:1668" ph="..." /> | |
846 | + </folding> | |
847 | + </state> | |
848 | + </provider> | |
849 | + </entry> | |
850 | + <entry file="file://$PROJECT_DIR$/adm/views/includes/menu_antigo.php"> | |
851 | + <provider selected="true" editor-type-id="text-editor"> | |
852 | + <state relative-caret-position="-186"> | |
853 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
854 | + <folding /> | |
855 | + </state> | |
856 | + </provider> | |
857 | + </entry> | |
858 | + <entry file="file://$PROJECT_DIR$/adm/config/ConfigController.php"> | |
859 | + <provider selected="true" editor-type-id="text-editor"> | |
860 | + <state relative-caret-position="508"> | |
861 | + <caret line="124" column="36" lean-forward="true" selection-start-line="124" selection-start-column="36" selection-end-line="124" selection-end-column="36" /> | |
862 | + <folding> | |
863 | + <marker date="1526957468881" expanded="true" signature="6197:6315" ph="..." /> | |
864 | + </folding> | |
865 | + </state> | |
866 | + </provider> | |
867 | + </entry> | |
868 | + </component> | |
869 | +</project> | |
0 | 870 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/Estrutura/ProjetoGol.sql | |
... | ... | @@ -0,0 +1,361 @@ |
1 | +-- phpMyAdmin SQL Dump | |
2 | +-- version 4.7.2 | |
3 | +-- https://www.phpmyadmin.net/ | |
4 | +-- | |
5 | +-- Host: 127.0.0.1 | |
6 | +-- Tempo de geração: 13/04/2018 às 10:14 | |
7 | +-- Versão do servidor: 10.1.18-MariaDB-1~xenial | |
8 | +-- Versão do PHP: 7.0.29-1+ubuntu16.04.1+deb.sury.org+1 | |
9 | + | |
10 | +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
11 | +SET AUTOCOMMIT = 0; | |
12 | +START TRANSACTION; | |
13 | +SET time_zone = "+00:00"; | |
14 | + | |
15 | +-- | |
16 | +-- Banco de dados: `dw_projeto_gol` | |
17 | +-- | |
18 | + | |
19 | +-- -------------------------------------------------------- | |
20 | + | |
21 | +-- | |
22 | +-- Estrutura para tabela `classes` | |
23 | +-- | |
24 | + | |
25 | +CREATE TABLE `classes` ( | |
26 | + `id` int(11) NOT NULL, | |
27 | + `nome_classe` varchar(220) DEFAULT NULL, | |
28 | + `criado` datetime DEFAULT NULL, | |
29 | + `modificado` datetime DEFAULT NULL | |
30 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
31 | + | |
32 | +-- | |
33 | +-- Fazendo dump de dados para tabela `classes` | |
34 | +-- | |
35 | + | |
36 | + | |
37 | + | |
38 | +-- -------------------------------------------------------- | |
39 | + | |
40 | +-- | |
41 | +-- Estrutura para tabela `metodos` | |
42 | +-- | |
43 | + | |
44 | +CREATE TABLE `metodos` ( | |
45 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
46 | + `nome_metodo` varchar(220) DEFAULT NULL, | |
47 | + `classes_id` int(11) DEFAULT NULL, | |
48 | + `criado` datetime DEFAULT NULL, | |
49 | + `modificado` datetime DEFAULT NULL | |
50 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
51 | + | |
52 | +-- | |
53 | +-- Fazendo dump de dados para tabela `metodos` | |
54 | +-- | |
55 | + | |
56 | + | |
57 | +-- -------------------------------------------------------- | |
58 | + | |
59 | +-- | |
60 | +-- Estrutura para tabela `niveis_acessos` | |
61 | +-- | |
62 | + | |
63 | +CREATE TABLE `niveis_acessos` ( | |
64 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
65 | + `nome_niveis_acesso` varchar(220) NOT NULL, | |
66 | + `criado` datetime NOT NULL, | |
67 | + `modificado` datetime DEFAULT NULL | |
68 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
69 | + | |
70 | +-- | |
71 | +-- Fazendo dump de dados para tabela `niveis_acessos` | |
72 | +-- | |
73 | + | |
74 | +INSERT INTO `niveis_acessos` (`id`, `nome_niveis_acesso`, `criado`, `modificado`) VALUES | |
75 | +(1, 'Administrador', '2018-02-13 20:38:08', NULL), | |
76 | +(2, 'Publico', '2018-02-13 20:38:43', NULL), | |
77 | +(3, 'Colaborador', '2018-02-13 20:38:52', NULL), | |
78 | +(4, 'Cliente', '2018-02-13 20:38:59', NULL); | |
79 | + | |
80 | +-- -------------------------------------------------------- | |
81 | + | |
82 | +-- | |
83 | +-- Estrutura para tabela `permissoes` | |
84 | +-- | |
85 | + | |
86 | +CREATE TABLE `permissoes` ( | |
87 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
88 | + `classes_id` int(11) DEFAULT NULL, | |
89 | + `metodos_id` int(11) DEFAULT NULL, | |
90 | + `niveis_acesso_id` int(11) DEFAULT NULL, | |
91 | + `situacao_permissao` int(11) DEFAULT NULL, | |
92 | + `criado` datetime DEFAULT NULL, | |
93 | + `modificado` datetime DEFAULT NULL | |
94 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
95 | + | |
96 | +-- | |
97 | +-- Fazendo dump de dados para tabela `permissoes` | |
98 | +-- | |
99 | + | |
100 | + | |
101 | + | |
102 | +-- -------------------------------------------------------- | |
103 | + | |
104 | +-- | |
105 | +-- Estrutura para tabela `situacoes_users` | |
106 | +-- | |
107 | + | |
108 | +CREATE TABLE `situacoes_users` ( | |
109 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
110 | + `nome_sit_user` varchar(30) NOT NULL, | |
111 | + `criado` datetime NOT NULL, | |
112 | + `modificado` datetime DEFAULT NULL | |
113 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
114 | + | |
115 | +-- | |
116 | +-- Fazendo dump de dados para tabela `situacoes_users` | |
117 | +-- | |
118 | + | |
119 | +INSERT INTO `situacoes_users` (`id`, `nome_sit_user`, `criado`, `modificado`) VALUES | |
120 | +(1, 'Ativo', '2018-02-13 00:00:00', NULL), | |
121 | +(2, 'Inativo', '2018-02-13 00:00:00', NULL), | |
122 | +(3, 'Aguardando Confirmacao', '2018-02-13 00:00:00', NULL); | |
123 | + | |
124 | +-- -------------------------------------------------------- | |
125 | + | |
126 | +-- | |
127 | +-- Estrutura para tabela `users` | |
128 | +-- | |
129 | + | |
130 | +CREATE TABLE `users` ( | |
131 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
132 | + `nome` varchar(100) DEFAULT NULL, | |
133 | + `email` varchar(60) DEFAULT NULL, | |
134 | + `password` char(32) DEFAULT NULL, | |
135 | + `foto` varchar(60) DEFAULT NULL, | |
136 | + `niveis_acesso_id` int(11) DEFAULT NULL, | |
137 | + `situacoes_user_id` int(11) DEFAULT NULL, | |
138 | + `criado` datetime DEFAULT NULL, | |
139 | + `modificado` datetime DEFAULT NULL | |
140 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
141 | + | |
142 | +-- | |
143 | +-- Fazendo dump de dados para tabela `users` | |
144 | +-- | |
145 | + | |
146 | +INSERT INTO `users` (`id`, `nome`, `email`, `password`, `foto`, `niveis_acesso_id`, `situacoes_user_id`, `criado`, `modificado`) VALUES | |
147 | +(1, 'Flávio', 'flavio@flavioizo.com', '202cb962ac59075b964b07152d234b70', 'flavio.jpg', 1, 1, '2018-02-13 13:00:00', NULL), | |
148 | +(2, 'Maria', 'maria@flavioizo.com', '202cb962ac59075b964b07152d234b70', 'maria.jpg', 3, 1, '2018-02-13 13:45:20', NULL), | |
149 | +(3, 'João', 'joao@flavioizo.com', '202cb962ac59075b964b07152d234b70', 'joao.jpg', 3, 1, '2018-02-13 13:48:58', NULL); | |
150 | + | |
151 | + | |
152 | +-- -------------------------------------------------------- | |
153 | + | |
154 | +-- | |
155 | +-- Estrutura para tabela `players_peso` | |
156 | +-- | |
157 | + | |
158 | +CREATE TABLE `players_peso` ( | |
159 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
160 | + `situacao` varchar(25) NOT NULL | |
161 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
162 | + | |
163 | +-- | |
164 | +-- Fazendo dump de dados para tabela `futebol_players` | |
165 | +-- | |
166 | + | |
167 | +INSERT INTO `players_peso` (`id`, `situacao`) VALUES | |
168 | +(1, 'Goleiro'), | |
169 | +(2, 'Decisivo'), | |
170 | +(3, 'Mediano'), | |
171 | +(4, 'Café com leite'); | |
172 | + | |
173 | +-- -------------------------------------------------------- | |
174 | + | |
175 | +-- | |
176 | +-- Estrutura para tabela `players` | |
177 | +-- | |
178 | + | |
179 | +CREATE TABLE `players` ( | |
180 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
181 | + `nome` varchar(40) NOT NULL, | |
182 | + `players_peso_id` int(11) NOT NULL | |
183 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
184 | + | |
185 | +-- | |
186 | +-- Fazendo dump de dados para tabela `futebol_players` | |
187 | +-- | |
188 | + | |
189 | +INSERT INTO `players` (`id`, `nome`, `players_peso_id`) VALUES | |
190 | +(1, 'Ronaldinho', 2), | |
191 | +(2, 'Sávio', 2), | |
192 | +(3, 'Gabriel Jesus', 2); | |
193 | + | |
194 | + | |
195 | +-- -------------------------------------------------------- | |
196 | + | |
197 | +-- | |
198 | +-- Estrutura para tabela `locais` | |
199 | +-- | |
200 | + | |
201 | +CREATE TABLE `locais` ( | |
202 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
203 | + `nome` varchar(40) NOT NULL | |
204 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
205 | + | |
206 | +-- | |
207 | +-- Fazendo dump de dados para tabela `locais` | |
208 | +-- | |
209 | + | |
210 | +INSERT INTO `locais` (`id`, `nome`) VALUES | |
211 | +(1, 'Bom gosto'), | |
212 | +(2, 'Hangar'); | |
213 | + | |
214 | +-- -------------------------------------------------------- | |
215 | + | |
216 | +-- | |
217 | +-- Estrutura para tabela `matchs` | |
218 | +-- | |
219 | + | |
220 | +CREATE TABLE `matchs` ( | |
221 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
222 | + `dia_hora` datetime DEFAULT NULL, | |
223 | + `locais_id` int(11) NOT NULL | |
224 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
225 | + | |
226 | +-- | |
227 | +-- Fazendo dump de dados para tabela `matchs` | |
228 | +-- | |
229 | + | |
230 | +INSERT INTO `matchs` (`id`, `dia_hora`, `locais_id`) VALUES | |
231 | +(1, '2018-03-13 13:48:58', 1); | |
232 | + | |
233 | +-- -------------------------------------------------------- | |
234 | + | |
235 | +-- | |
236 | +-- Estrutura para tabela `matchs_players` | |
237 | +-- | |
238 | + | |
239 | +CREATE TABLE `matchs_players` ( | |
240 | + `matchs_id` int(11) NOT NULL, | |
241 | + `players_id` int(11) NOT NULL, | |
242 | + `gols` int(11) NOT NULL DEFAULT 0 | |
243 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
244 | + | |
245 | +-- | |
246 | +-- Fazendo dump de dados para tabela `matchs_players` | |
247 | +-- | |
248 | + | |
249 | +INSERT INTO `matchs_players` (`matchs_id`, `players_id`, `gols`) VALUES | |
250 | +(1, 1, 0), | |
251 | +(1, 2, 0), | |
252 | +(1, 3, 0); | |
253 | + | |
254 | +-- -------------------------------------------------------- | |
255 | + | |
256 | +-- | |
257 | +-- Índices de tabela `classes` | |
258 | +-- | |
259 | +ALTER TABLE `classes` | |
260 | + ADD PRIMARY KEY (`id`); | |
261 | + | |
262 | +-- | |
263 | +-- Índices de tabela `metodos` | |
264 | +-- | |
265 | +ALTER TABLE `metodos` | |
266 | + ADD PRIMARY KEY (`id`); | |
267 | + | |
268 | +ALTER TABLE `metodos` | |
269 | + ADD CONSTRAINT FK_ClassesMetodos | |
270 | + FOREIGN KEY (`classes_id`) REFERENCES classes(`id`); | |
271 | + | |
272 | +-- | |
273 | +-- Índices de tabela `niveis_acessos` | |
274 | +-- | |
275 | +ALTER TABLE `niveis_acessos` | |
276 | + ADD PRIMARY KEY (`id`); | |
277 | + | |
278 | +-- | |
279 | +-- Índices de tabela `permissoes` | |
280 | +-- | |
281 | +ALTER TABLE `permissoes` | |
282 | + ADD PRIMARY KEY (`id`); | |
283 | + | |
284 | +ALTER TABLE `permissoes` | |
285 | + ADD CONSTRAINT `FK_ClassesPermissoes` | |
286 | + FOREIGN KEY (`classes_id`) REFERENCES `classes`(`id`); | |
287 | + | |
288 | +ALTER TABLE `permissoes` | |
289 | + ADD CONSTRAINT `FK_MetodosPermissoes` | |
290 | + FOREIGN KEY (`metodos_id`) REFERENCES `classes`(`id`); | |
291 | + | |
292 | +ALTER TABLE `permissoes` | |
293 | + ADD CONSTRAINT `FK_NiveisAcessoPermissoes` | |
294 | + FOREIGN KEY (`niveis_acesso_id`) REFERENCES `niveis_acessos`(`id`); | |
295 | + | |
296 | +-- | |
297 | +-- Índices de tabela `situacoes_users` | |
298 | +-- | |
299 | +ALTER TABLE `situacoes_users` | |
300 | + ADD PRIMARY KEY (`id`); | |
301 | + | |
302 | +-- | |
303 | +-- Índices de tabela `users` | |
304 | +-- | |
305 | +ALTER TABLE `users` | |
306 | + ADD PRIMARY KEY (`id`); | |
307 | + | |
308 | +ALTER TABLE `users` | |
309 | + ADD CONSTRAINT `FK_NiveisAcessoUsers` | |
310 | + FOREIGN KEY (`niveis_acesso_id`) REFERENCES `niveis_acessos`(`id`); | |
311 | + | |
312 | +ALTER TABLE `users` | |
313 | + ADD CONSTRAINT `FK_SituacoesUserUsers` | |
314 | + FOREIGN KEY (`situacoes_user_id`) REFERENCES `situacoes_users`(`id`); | |
315 | + | |
316 | +-- | |
317 | +-- Índices de tabela `players_peso` | |
318 | +-- | |
319 | +ALTER TABLE `players_peso` | |
320 | + ADD PRIMARY KEY (`id`); | |
321 | + | |
322 | +-- | |
323 | +-- Índices de tabela `players` | |
324 | +-- | |
325 | +ALTER TABLE `players` | |
326 | + ADD PRIMARY KEY (`id`); | |
327 | + | |
328 | +ALTER TABLE `players` | |
329 | + ADD CONSTRAINT `FK_PlayersPesoPlayers` | |
330 | + FOREIGN KEY (`players_peso_id`) REFERENCES `players_peso`(`id`); | |
331 | + | |
332 | +-- | |
333 | +-- Índices de tabela `local` | |
334 | +-- | |
335 | +ALTER TABLE `locais` | |
336 | + ADD PRIMARY KEY (`id`); | |
337 | + | |
338 | +-- | |
339 | +-- Índices de tabela `match` | |
340 | +-- | |
341 | +ALTER TABLE `matchs` | |
342 | + ADD PRIMARY KEY (`id`); | |
343 | + | |
344 | +ALTER TABLE `matchs` | |
345 | + ADD CONSTRAINT `FK_LocaisMatchs` | |
346 | + FOREIGN KEY (`locais_id`) REFERENCES `locais`(`id`); | |
347 | + | |
348 | +-- | |
349 | +-- Índices de tabela `matchs_players` | |
350 | +-- | |
351 | +ALTER TABLE `matchs_players` | |
352 | + ADD PRIMARY KEY (`matchs_id`, `players_id`); | |
353 | + | |
354 | +ALTER TABLE `matchs_players` | |
355 | + ADD CONSTRAINT `FK_MatchsMatchsPlayers` | |
356 | + FOREIGN KEY (`matchs_id`) REFERENCES `matchs`(`id`); | |
357 | + | |
358 | +ALTER TABLE `matchs_players` | |
359 | + ADD CONSTRAINT `FK_PlayersMatchsPlayers` | |
360 | + FOREIGN KEY (`players_id`) REFERENCES `players`(`id`); | |
361 | + | |
0 | 362 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/.htaccess | |
... | ... | @@ -0,0 +1,16 @@ |
1 | +# ativar a escrita | |
2 | +RewriteEngine On | |
3 | + | |
4 | +# Informando o caminho principal do seu projeto | |
5 | +# Importante quando se utiliza Alias | |
6 | +RewriteBase /dw/ProjetoGol/adm/ | |
7 | + | |
8 | +# informando que a regra é para pegar os valores e não | |
9 | +# tentar acessar diretórios, arquivos e links conhecidos | |
10 | +RewriteCond %{REQUEST_FILENAME} !-d | |
11 | +RewriteCond %{REQUEST_FILENAME} !-f | |
12 | +RewriteCond %{REQUEST_FILENAME} !-l | |
13 | + | |
14 | +# expressao regular para pegar tudo após o index.php | |
15 | +# e anexar à query URL. Encerrar o .htaccess | |
16 | +RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] | |
0 | 17 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/.idea/adm.iml | |
... | ... | @@ -0,0 +1,18 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<module type="WEB_MODULE" version="4"> | |
3 | + <component name="NewModuleRootManager"> | |
4 | + <content url="file://$MODULE_DIR$" /> | |
5 | + <orderEntry type="inheritedJdk" /> | |
6 | + <orderEntry type="sourceFolder" forTests="false" /> | |
7 | + <orderEntry type="module-library"> | |
8 | + <library name="PHP Runtime" type="php"> | |
9 | + <CLASSES> | |
10 | + <root url="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/stubs/standard" /> | |
11 | + </CLASSES> | |
12 | + <SOURCES> | |
13 | + <root url="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/stubs/standard" /> | |
14 | + </SOURCES> | |
15 | + </library> | |
16 | + </orderEntry> | |
17 | + </component> | |
18 | +</module> | |
0 | 19 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/.idea/modules.xml | |
... | ... | @@ -0,0 +1,8 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ProjectModuleManager"> | |
4 | + <modules> | |
5 | + <module fileurl="file://$PROJECT_DIR$/.idea/adm.iml" filepath="$PROJECT_DIR$/.idea/adm.iml" /> | |
6 | + </modules> | |
7 | + </component> | |
8 | +</project> | |
0 | 9 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/.idea/workspace.xml | |
... | ... | @@ -0,0 +1,397 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ChangeListManager"> | |
4 | + <list default="true" id="d2792d2a-9ee9-449d-816d-0f0bf87afa7b" name="Default" comment="" /> | |
5 | + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | |
6 | + <option name="TRACKING_ENABLED" value="true" /> | |
7 | + <option name="SHOW_DIALOG" value="false" /> | |
8 | + <option name="HIGHLIGHT_CONFLICTS" value="true" /> | |
9 | + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | |
10 | + <option name="LAST_RESOLUTION" value="IGNORE" /> | |
11 | + </component> | |
12 | + <component name="CreatePatchCommitExecutor"> | |
13 | + <option name="PATCH_PATH" value="" /> | |
14 | + </component> | |
15 | + <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" /> | |
16 | + <component name="FileEditorManager"> | |
17 | + <leaf> | |
18 | + <file leaf-file-name="inserirUsers.php" pinned="false" current-in-tab="false"> | |
19 | + <entry file="file://$PROJECT_DIR$/views/users/inserirUsers.php"> | |
20 | + <provider selected="true" editor-type-id="text-editor"> | |
21 | + <state relative-caret-position="108"> | |
22 | + <caret line="14" column="80" lean-forward="false" selection-start-line="14" selection-start-column="80" selection-end-line="14" selection-end-column="80" /> | |
23 | + <folding /> | |
24 | + </state> | |
25 | + </provider> | |
26 | + </entry> | |
27 | + </file> | |
28 | + <file leaf-file-name="ControllerUsers.php" pinned="false" current-in-tab="false"> | |
29 | + <entry file="file://$PROJECT_DIR$/controllers/ControllerUsers.php"> | |
30 | + <provider selected="true" editor-type-id="text-editor"> | |
31 | + <state relative-caret-position="368"> | |
32 | + <caret line="26" column="47" lean-forward="false" selection-start-line="26" selection-start-column="47" selection-end-line="26" selection-end-column="47" /> | |
33 | + <folding /> | |
34 | + </state> | |
35 | + </provider> | |
36 | + </entry> | |
37 | + </file> | |
38 | + <file leaf-file-name="ModelsCreate.php" pinned="false" current-in-tab="false"> | |
39 | + <entry file="file://$PROJECT_DIR$/models/helper/ModelsCreate.php"> | |
40 | + <provider selected="true" editor-type-id="text-editor"> | |
41 | + <state relative-caret-position="262"> | |
42 | + <caret line="28" column="48" lean-forward="true" selection-start-line="28" selection-start-column="48" selection-end-line="28" selection-end-column="48" /> | |
43 | + <folding> | |
44 | + <marker date="1524796421772" expanded="true" signature="553:609" ph="INSERT INTO $... " /> | |
45 | + </folding> | |
46 | + </state> | |
47 | + </provider> | |
48 | + </entry> | |
49 | + </file> | |
50 | + <file leaf-file-name="ModelsUsers.php" pinned="false" current-in-tab="true"> | |
51 | + <entry file="file://$PROJECT_DIR$/models/ModelsUsers.php"> | |
52 | + <provider selected="true" editor-type-id="text-editor"> | |
53 | + <state relative-caret-position="208"> | |
54 | + <caret line="32" column="96" lean-forward="false" selection-start-line="32" selection-start-column="96" selection-end-line="32" selection-end-column="96" /> | |
55 | + <folding> | |
56 | + <marker date="1524796448446" expanded="true" signature="1017:1028" ph="..." /> | |
57 | + </folding> | |
58 | + </state> | |
59 | + </provider> | |
60 | + </entry> | |
61 | + </file> | |
62 | + </leaf> | |
63 | + </component> | |
64 | + <component name="IdeDocumentHistory"> | |
65 | + <option name="CHANGED_PATHS"> | |
66 | + <list> | |
67 | + <option value="$PROJECT_DIR$/config/Config.php" /> | |
68 | + <option value="$PROJECT_DIR$/views/users/listarUsers.php" /> | |
69 | + <option value="$PROJECT_DIR$/views/users/visualizarUsers.php" /> | |
70 | + <option value="$PROJECT_DIR$/config/ConfigView.php" /> | |
71 | + <option value="$PROJECT_DIR$/views/users/inserirUsers.php" /> | |
72 | + <option value="$PROJECT_DIR$/controllers/ControllerUsers.php" /> | |
73 | + <option value="$PROJECT_DIR$/models/helper/ModelsCreate.php" /> | |
74 | + <option value="$PROJECT_DIR$/models/ModelsUsers.php" /> | |
75 | + </list> | |
76 | + </option> | |
77 | + </component> | |
78 | + <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> | |
79 | + <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> | |
80 | + <component name="JsGulpfileManager"> | |
81 | + <detection-done>true</detection-done> | |
82 | + <sorting>DEFINITION_ORDER</sorting> | |
83 | + </component> | |
84 | + <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" /> | |
85 | + <component name="ProjectFrameBounds"> | |
86 | + <option name="x" value="-8" /> | |
87 | + <option name="y" value="-8" /> | |
88 | + <option name="width" value="1382" /> | |
89 | + <option name="height" value="744" /> | |
90 | + </component> | |
91 | + <component name="ProjectView"> | |
92 | + <navigator currentView="ProjectPane" proportions="" version="1"> | |
93 | + <flattenPackages /> | |
94 | + <showMembers /> | |
95 | + <showModules /> | |
96 | + <showLibraryContents /> | |
97 | + <hideEmptyPackages /> | |
98 | + <abbreviatePackageNames /> | |
99 | + <autoscrollToSource /> | |
100 | + <autoscrollFromSource /> | |
101 | + <sortByType /> | |
102 | + <manualOrder /> | |
103 | + <foldersAlwaysOnTop value="true" /> | |
104 | + </navigator> | |
105 | + <panes> | |
106 | + <pane id="Scratches" /> | |
107 | + <pane id="Scope" /> | |
108 | + <pane id="ProjectPane"> | |
109 | + <subPane> | |
110 | + <PATH> | |
111 | + <PATH_ELEMENT> | |
112 | + <option name="myItemId" value="adm" /> | |
113 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
114 | + </PATH_ELEMENT> | |
115 | + <PATH_ELEMENT> | |
116 | + <option name="myItemId" value="adm" /> | |
117 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
118 | + </PATH_ELEMENT> | |
119 | + </PATH> | |
120 | + <PATH> | |
121 | + <PATH_ELEMENT> | |
122 | + <option name="myItemId" value="adm" /> | |
123 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
124 | + </PATH_ELEMENT> | |
125 | + <PATH_ELEMENT> | |
126 | + <option name="myItemId" value="adm" /> | |
127 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
128 | + </PATH_ELEMENT> | |
129 | + <PATH_ELEMENT> | |
130 | + <option name="myItemId" value="views" /> | |
131 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
132 | + </PATH_ELEMENT> | |
133 | + <PATH_ELEMENT> | |
134 | + <option name="myItemId" value="users" /> | |
135 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
136 | + </PATH_ELEMENT> | |
137 | + </PATH> | |
138 | + <PATH> | |
139 | + <PATH_ELEMENT> | |
140 | + <option name="myItemId" value="adm" /> | |
141 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
142 | + </PATH_ELEMENT> | |
143 | + <PATH_ELEMENT> | |
144 | + <option name="myItemId" value="adm" /> | |
145 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
146 | + </PATH_ELEMENT> | |
147 | + <PATH_ELEMENT> | |
148 | + <option name="myItemId" value="models" /> | |
149 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
150 | + </PATH_ELEMENT> | |
151 | + </PATH> | |
152 | + <PATH> | |
153 | + <PATH_ELEMENT> | |
154 | + <option name="myItemId" value="adm" /> | |
155 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
156 | + </PATH_ELEMENT> | |
157 | + <PATH_ELEMENT> | |
158 | + <option name="myItemId" value="adm" /> | |
159 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
160 | + </PATH_ELEMENT> | |
161 | + <PATH_ELEMENT> | |
162 | + <option name="myItemId" value="models" /> | |
163 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
164 | + </PATH_ELEMENT> | |
165 | + <PATH_ELEMENT> | |
166 | + <option name="myItemId" value="helper" /> | |
167 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
168 | + </PATH_ELEMENT> | |
169 | + </PATH> | |
170 | + <PATH> | |
171 | + <PATH_ELEMENT> | |
172 | + <option name="myItemId" value="adm" /> | |
173 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
174 | + </PATH_ELEMENT> | |
175 | + <PATH_ELEMENT> | |
176 | + <option name="myItemId" value="adm" /> | |
177 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
178 | + </PATH_ELEMENT> | |
179 | + <PATH_ELEMENT> | |
180 | + <option name="myItemId" value="controllers" /> | |
181 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
182 | + </PATH_ELEMENT> | |
183 | + </PATH> | |
184 | + <PATH> | |
185 | + <PATH_ELEMENT> | |
186 | + <option name="myItemId" value="adm" /> | |
187 | + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> | |
188 | + </PATH_ELEMENT> | |
189 | + <PATH_ELEMENT> | |
190 | + <option name="myItemId" value="adm" /> | |
191 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
192 | + </PATH_ELEMENT> | |
193 | + <PATH_ELEMENT> | |
194 | + <option name="myItemId" value="config" /> | |
195 | + <option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" /> | |
196 | + </PATH_ELEMENT> | |
197 | + </PATH> | |
198 | + </subPane> | |
199 | + </pane> | |
200 | + </panes> | |
201 | + </component> | |
202 | + <component name="PropertiesComponent"> | |
203 | + <property name="settings.editor.selected.configurable" value="configurable.group.editor" /> | |
204 | + <property name="WebServerToolWindowFactoryState" value="false" /> | |
205 | + <property name="js.eslint.eslintPackage" value="" /> | |
206 | + </component> | |
207 | + <component name="RunManager"> | |
208 | + <configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor"> | |
209 | + <config-file value="" /> | |
210 | + <node-interpreter value="project" /> | |
211 | + <envs /> | |
212 | + <method /> | |
213 | + </configuration> | |
214 | + <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug"> | |
215 | + <method /> | |
216 | + </configuration> | |
217 | + <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir=""> | |
218 | + <method /> | |
219 | + </configuration> | |
220 | + <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit"> | |
221 | + <TestRunner /> | |
222 | + <method /> | |
223 | + </configuration> | |
224 | + <configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat"> | |
225 | + <BehatRunner /> | |
226 | + <method /> | |
227 | + </configuration> | |
228 | + <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console"> | |
229 | + <method /> | |
230 | + </configuration> | |
231 | + <configuration default="true" type="PhpSpecConfigurationType" factoryName="PHPSpec"> | |
232 | + <PhpTestRunnerSettings /> | |
233 | + <method /> | |
234 | + </configuration> | |
235 | + <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js"> | |
236 | + <method /> | |
237 | + </configuration> | |
238 | + <configuration default="true" type="js.build_tools.npm" factoryName="npm"> | |
239 | + <command value="run" /> | |
240 | + <scripts /> | |
241 | + <node-interpreter value="project" /> | |
242 | + <envs /> | |
243 | + <method /> | |
244 | + </configuration> | |
245 | + <configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha"> | |
246 | + <node-interpreter>project</node-interpreter> | |
247 | + <node-options /> | |
248 | + <working-directory /> | |
249 | + <pass-parent-env>true</pass-parent-env> | |
250 | + <envs /> | |
251 | + <ui /> | |
252 | + <extra-mocha-options /> | |
253 | + <test-kind>DIRECTORY</test-kind> | |
254 | + <test-directory /> | |
255 | + <recursive>false</recursive> | |
256 | + <method /> | |
257 | + </configuration> | |
258 | + </component> | |
259 | + <component name="ShelveChangesManager" show_recycled="false"> | |
260 | + <option name="remove_strategy" value="false" /> | |
261 | + </component> | |
262 | + <component name="TaskManager"> | |
263 | + <task active="true" id="Default" summary="Default task"> | |
264 | + <changelist id="d2792d2a-9ee9-449d-816d-0f0bf87afa7b" name="Default" comment="" /> | |
265 | + <created>1524783134806</created> | |
266 | + <option name="number" value="Default" /> | |
267 | + <option name="presentableId" value="Default" /> | |
268 | + <updated>1524783134806</updated> | |
269 | + <workItem from="1524783136391" duration="10868000" /> | |
270 | + </task> | |
271 | + <servers /> | |
272 | + </component> | |
273 | + <component name="TimeTrackingManager"> | |
274 | + <option name="totallyTimeSpent" value="10868000" /> | |
275 | + </component> | |
276 | + <component name="ToolWindowManager"> | |
277 | + <frame x="-8" y="-8" width="1382" height="744" extended-state="6" /> | |
278 | + <editor active="true" /> | |
279 | + <layout> | |
280 | + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.096066564" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | |
281 | + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | |
282 | + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> | |
283 | + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | |
284 | + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | |
285 | + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |
286 | + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" /> | |
287 | + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" /> | |
288 | + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | |
289 | + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | |
290 | + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | |
291 | + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | |
292 | + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |
293 | + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | |
294 | + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | |
295 | + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | |
296 | + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | |
297 | + </layout> | |
298 | + </component> | |
299 | + <component name="TypeScriptGeneratedFilesManager"> | |
300 | + <option name="processedProjectFiles" value="true" /> | |
301 | + </component> | |
302 | + <component name="VcsContentAnnotationSettings"> | |
303 | + <option name="myLimit" value="2678400000" /> | |
304 | + </component> | |
305 | + <component name="XDebuggerManager"> | |
306 | + <breakpoint-manager /> | |
307 | + <watches-manager /> | |
308 | + </component> | |
309 | + <component name="editorHistoryManager"> | |
310 | + <entry file="file://$PROJECT_DIR$/models/helper/ModelsConn.php"> | |
311 | + <provider selected="true" editor-type-id="text-editor"> | |
312 | + <state relative-caret-position="0"> | |
313 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | |
314 | + <folding /> | |
315 | + </state> | |
316 | + </provider> | |
317 | + </entry> | |
318 | + <entry file="file://$PROJECT_DIR$/config/Config.php"> | |
319 | + <provider selected="true" editor-type-id="text-editor"> | |
320 | + <state relative-caret-position="60"> | |
321 | + <caret line="3" column="7" lean-forward="true" selection-start-line="3" selection-start-column="7" selection-end-line="3" selection-end-column="7" /> | |
322 | + <folding /> | |
323 | + </state> | |
324 | + </provider> | |
325 | + </entry> | |
326 | + <entry file="file://$PROJECT_DIR$/views/users/visualizarUsers.php"> | |
327 | + <provider selected="true" editor-type-id="text-editor"> | |
328 | + <state relative-caret-position="220"> | |
329 | + <caret line="17" column="9" lean-forward="false" selection-start-line="17" selection-start-column="9" selection-end-line="17" selection-end-column="9" /> | |
330 | + <folding /> | |
331 | + </state> | |
332 | + </provider> | |
333 | + </entry> | |
334 | + <entry file="file://$PROJECT_DIR$/config/ConfigView.php"> | |
335 | + <provider selected="true" editor-type-id="text-editor"> | |
336 | + <state relative-caret-position="300"> | |
337 | + <caret line="15" column="27" lean-forward="true" selection-start-line="15" selection-start-column="27" selection-end-line="15" selection-end-column="27" /> | |
338 | + <folding /> | |
339 | + </state> | |
340 | + </provider> | |
341 | + </entry> | |
342 | + <entry file="file://$PROJECT_DIR$/views/users/listarUsers.php"> | |
343 | + <provider selected="true" editor-type-id="text-editor"> | |
344 | + <state relative-caret-position="128"> | |
345 | + <caret line="30" column="8" lean-forward="true" selection-start-line="30" selection-start-column="8" selection-end-line="30" selection-end-column="24" /> | |
346 | + <folding /> | |
347 | + </state> | |
348 | + </provider> | |
349 | + </entry> | |
350 | + <entry file="file://$PROJECT_DIR$/models/helper/ModelsRead.php"> | |
351 | + <provider selected="true" editor-type-id="text-editor"> | |
352 | + <state relative-caret-position="80"> | |
353 | + <caret line="4" column="4" lean-forward="false" selection-start-line="4" selection-start-column="4" selection-end-line="9" selection-end-column="18" /> | |
354 | + <folding> | |
355 | + <marker date="1524436952082" expanded="true" signature="506:530" ph="SELECT * FRO... $" /> | |
356 | + </folding> | |
357 | + </state> | |
358 | + </provider> | |
359 | + </entry> | |
360 | + <entry file="file://$PROJECT_DIR$/controllers/ControllerUsers.php"> | |
361 | + <provider selected="true" editor-type-id="text-editor"> | |
362 | + <state relative-caret-position="368"> | |
363 | + <caret line="26" column="47" lean-forward="false" selection-start-line="26" selection-start-column="47" selection-end-line="26" selection-end-column="47" /> | |
364 | + <folding /> | |
365 | + </state> | |
366 | + </provider> | |
367 | + </entry> | |
368 | + <entry file="file://$PROJECT_DIR$/views/users/inserirUsers.php"> | |
369 | + <provider selected="true" editor-type-id="text-editor"> | |
370 | + <state relative-caret-position="108"> | |
371 | + <caret line="14" column="80" lean-forward="false" selection-start-line="14" selection-start-column="80" selection-end-line="14" selection-end-column="80" /> | |
372 | + <folding /> | |
373 | + </state> | |
374 | + </provider> | |
375 | + </entry> | |
376 | + <entry file="file://$PROJECT_DIR$/models/helper/ModelsCreate.php"> | |
377 | + <provider selected="true" editor-type-id="text-editor"> | |
378 | + <state relative-caret-position="262"> | |
379 | + <caret line="28" column="48" lean-forward="true" selection-start-line="28" selection-start-column="48" selection-end-line="28" selection-end-column="48" /> | |
380 | + <folding> | |
381 | + <marker date="1524796421772" expanded="true" signature="553:609" ph="INSERT INTO $... " /> | |
382 | + </folding> | |
383 | + </state> | |
384 | + </provider> | |
385 | + </entry> | |
386 | + <entry file="file://$PROJECT_DIR$/models/ModelsUsers.php"> | |
387 | + <provider selected="true" editor-type-id="text-editor"> | |
388 | + <state relative-caret-position="208"> | |
389 | + <caret line="32" column="96" lean-forward="false" selection-start-line="32" selection-start-column="96" selection-end-line="32" selection-end-column="96" /> | |
390 | + <folding> | |
391 | + <marker date="1524796448446" expanded="true" signature="1017:1028" ph="..." /> | |
392 | + </folding> | |
393 | + </state> | |
394 | + </provider> | |
395 | + </entry> | |
396 | + </component> | |
397 | +</project> | |
0 | 398 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/assets/css/dashboard.css | |
... | ... | @@ -0,0 +1,107 @@ |
1 | +body { | |
2 | + font-size: .875rem; | |
3 | +} | |
4 | + | |
5 | +.feather { | |
6 | + width: 16px; | |
7 | + height: 16px; | |
8 | + vertical-align: text-bottom; | |
9 | +} | |
10 | + | |
11 | +/* | |
12 | + * Sidebar | |
13 | + */ | |
14 | + | |
15 | +.sidebar { | |
16 | + position: fixed; | |
17 | + top: 0; | |
18 | + bottom: 0; | |
19 | + left: 0; | |
20 | + z-index: 100; /* Behind the navbar */ | |
21 | + padding: 48px 0 0; /* Height of navbar */ | |
22 | + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); | |
23 | +} | |
24 | + | |
25 | +.sidebar-sticky { | |
26 | + position: relative; | |
27 | + top: 0; | |
28 | + height: calc(100vh - 48px); | |
29 | + padding-top: .5rem; | |
30 | + overflow-x: hidden; | |
31 | + overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ | |
32 | +} | |
33 | + | |
34 | +@supports ((position: -webkit-sticky) or (position: sticky)) { | |
35 | + .sidebar-sticky { | |
36 | + position: -webkit-sticky; | |
37 | + position: sticky; | |
38 | + } | |
39 | +} | |
40 | + | |
41 | +.sidebar .nav-link { | |
42 | + font-weight: 500; | |
43 | + color: #333; | |
44 | +} | |
45 | + | |
46 | +.sidebar .nav-link .feather { | |
47 | + margin-right: 4px; | |
48 | + color: #999; | |
49 | +} | |
50 | + | |
51 | +.sidebar .nav-link.active { | |
52 | + color: #007bff; | |
53 | +} | |
54 | + | |
55 | +.sidebar .nav-link:hover .feather, | |
56 | +.sidebar .nav-link.active .feather { | |
57 | + color: inherit; | |
58 | +} | |
59 | + | |
60 | +.sidebar-heading { | |
61 | + font-size: .75rem; | |
62 | + text-transform: uppercase; | |
63 | +} | |
64 | + | |
65 | +/* | |
66 | + * Content | |
67 | + */ | |
68 | + | |
69 | +[role="main"] { | |
70 | + padding-top: 48px; /* Space for fixed navbar */ | |
71 | +} | |
72 | + | |
73 | +/* | |
74 | + * Navbar | |
75 | + */ | |
76 | + | |
77 | +.navbar-brand { | |
78 | + padding-top: .75rem; | |
79 | + padding-bottom: .75rem; | |
80 | + font-size: 1rem; | |
81 | + background-color: rgba(0, 0, 0, .25); | |
82 | + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); | |
83 | +} | |
84 | + | |
85 | +.navbar .form-control { | |
86 | + padding: .75rem 1rem; | |
87 | + border-width: 0; | |
88 | + border-radius: 0; | |
89 | +} | |
90 | + | |
91 | +.form-control-dark { | |
92 | + color: #fff; | |
93 | + background-color: rgba(255, 255, 255, .1); | |
94 | + border-color: rgba(255, 255, 255, .1); | |
95 | +} | |
96 | + | |
97 | +.form-control-dark:focus { | |
98 | + border-color: transparent; | |
99 | + box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); | |
100 | +} | |
101 | + | |
102 | +/* | |
103 | + * Utilities | |
104 | + */ | |
105 | + | |
106 | +.border-top { border-top: 1px solid #e5e5e5; } | |
107 | +.border-bottom { border-bottom: 1px solid #e5e5e5; } | ... | ... |
1 | +++ a/ProjetoAdidas/adm/assets/css/signin.css | |
... | ... | @@ -0,0 +1,45 @@ |
1 | +html, | |
2 | +body { | |
3 | + height: 100%; | |
4 | +} | |
5 | + | |
6 | +body { | |
7 | + display: -ms-flexbox; | |
8 | + display: flex; | |
9 | + -ms-flex-align: center; | |
10 | + align-items: center; | |
11 | + padding-top: 40px; | |
12 | + padding-bottom: 40px; | |
13 | + background-color: lightgray; | |
14 | +} | |
15 | + | |
16 | +.form-signin { | |
17 | + width: 100%; | |
18 | + max-width: 330px; | |
19 | + padding: 15px; | |
20 | + margin: auto; | |
21 | + background-color: #fff; | |
22 | +} | |
23 | +.form-signin .checkbox { | |
24 | + font-weight: 400; | |
25 | +} | |
26 | +.form-signin .form-control { | |
27 | + position: relative; | |
28 | + box-sizing: border-box; | |
29 | + height: auto; | |
30 | + padding: 10px; | |
31 | + font-size: 16px; | |
32 | +} | |
33 | +.form-signin .form-control:focus { | |
34 | + z-index: 2; | |
35 | +} | |
36 | +.form-signin input[type="email"] { | |
37 | + margin-bottom: -1px; | |
38 | + border-bottom-right-radius: 0; | |
39 | + border-bottom-left-radius: 0; | |
40 | +} | |
41 | +.form-signin input[type="password"] { | |
42 | + margin-bottom: 10px; | |
43 | + border-top-left-radius: 0; | |
44 | + border-top-right-radius: 0; | |
45 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/config/Config.php | |
... | ... | @@ -0,0 +1,31 @@ |
1 | +<?php | |
2 | +session_start(); | |
3 | +//Dados de acesso ao BD | |
4 | +define('HOST', 'localhost'); | |
5 | +define('USER', 'root'); | |
6 | +define('PASS', ''); | |
7 | +define('DBNAME', 'Projeto_adidas'); | |
8 | + | |
9 | +// url padrao do site | |
10 | +define('URL', 'http://127.0.0.1/DW/ProjetoAdidas/adm/'); | |
11 | + | |
12 | +// controller e métodos padrão | |
13 | +define('CONTROLLER', 'controller-home'); | |
14 | +define('METHOD', 'index'); | |
15 | + | |
16 | +// função para importar automaticamente as classes | |
17 | +//function __autoload($Class) { | |
18 | + spl_autoload_register(function($Class) { | |
19 | + $dirName = array( | |
20 | + 'Config', | |
21 | + 'Controllers', | |
22 | + 'Models', | |
23 | + 'Models/helper', | |
24 | + 'Views' | |
25 | + ); | |
26 | + foreach ($dirName as $diretorios) { | |
27 | + if (file_exists("{$diretorios}/{$Class}.php")) { | |
28 | + require("{$diretorios}/{$Class}.php"); | |
29 | + } | |
30 | + } | |
31 | +}); | ... | ... |
1 | +++ a/ProjetoAdidas/adm/config/ConfigController.php | |
... | ... | @@ -0,0 +1,159 @@ |
1 | +<?php | |
2 | + | |
3 | +Class ConfigController{ | |
4 | + | |
5 | + private $url; | |
6 | + private $urlConjunto; | |
7 | + private $urlController; | |
8 | + private $urlMetodo; | |
9 | + private $urlParametro; | |
10 | + private static $formatar; | |
11 | + | |
12 | + public function __construct(){ | |
13 | + | |
14 | + if (!empty(filter_input(INPUT_GET, 'url', FILTER_DEFAULT))){ | |
15 | + $this->url = filter_input(INPUT_GET, 'url', FILTER_DEFAULT); | |
16 | + //echo $this->url; | |
17 | + | |
18 | + //echo "<br />Antes da formatação: " .$this->url; | |
19 | + $this->clearUrl(); | |
20 | + //echo "<br />Depois da formatação: " .$this->url; | |
21 | + | |
22 | + // SEPARA OS VALORES EM ARRAY | |
23 | + $this->urlConjunto = explode("/", $this->url); | |
24 | + | |
25 | + /*echo "<pre>"; | |
26 | + print_r($this->urlConjunto); | |
27 | + echo "</pre>";*/ | |
28 | + // trata o controller, caso exista | |
29 | + if (isset($this->urlConjunto[0])){ | |
30 | + $this->urlController = $this->validarController($this->urlConjunto[0]); | |
31 | + } | |
32 | + // trata o método, caso exista | |
33 | + if (isset($this->urlConjunto[1])){ | |
34 | + $this->urlMetodo = $this->validarMetodo($this->urlConjunto[1]); | |
35 | + } | |
36 | + // trata o parâmetro, caso exista | |
37 | + if (isset($this->urlConjunto[2])){ | |
38 | + $this->urlParametro = (int)$this->urlConjunto[2]; | |
39 | + //echo "<br />{$this->urlParametro}"; | |
40 | + }else { | |
41 | + $this->urlParametro = null; | |
42 | + } | |
43 | + | |
44 | + }else{ | |
45 | + $this->urlController = $this->validarController(CONTROLLER); | |
46 | + $this->urlMetodo = $this->validarMetodo(METHOD); | |
47 | + } | |
48 | + } | |
49 | + | |
50 | + public function clearUrl(){ | |
51 | + // eliminar as tags html | |
52 | + $this->url = strip_tags($this->url); | |
53 | + // retirar espaços em branco contidos nas laterais da variável URL | |
54 | + $this->url = trim($this->url); | |
55 | + // retirar a última barra, caso exista | |
56 | + $this->url = rtrim($this->url, "/"); | |
57 | + // FORMATA OS CARACTERES | |
58 | + self::$formatar = array(); | |
59 | + self::$formatar['a'] = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜüÝÞßàáâãäåæçèéêëìíîï | |
60 | + ðñòóôõöøùúûýýþÿRr"!@#$%&*()_-+={[}]?;:.,\\\'<>°ºª '; | |
61 | + self::$formatar['b'] = 'aaaaaaaceeeeiiiidnoooooouuuuuybsaaaaaaaceeeeiiii | |
62 | + dnoooooouuuyybyRr--------------------------------'; | |
63 | + // traduz os caracteres do padrão A para o padrão B | |
64 | + $this->url = strtr(utf8_decode($this->url), utf8_decode(self::$formatar['a']), | |
65 | + self::$formatar['b']); | |
66 | + } | |
67 | + | |
68 | + // método que trata o nome do controller passado na url para o padrao CamelCase. | |
69 | + // Ex.: ControlleUsuario de Classe | |
70 | + public function validarController($controller){ | |
71 | + // retiro os espaços entre as palavras e acrescento as palavras para o | |
72 | + // primeiro caracter em maiúsculo | |
73 | + // separa o - para retirá-lo | |
74 | + $controller = explode("-", strtolower($controller)); | |
75 | + // Junto através de espaços para que eu possa colocar as primeiras em maiúsculo | |
76 | + $controller = implode(" ", $controller); | |
77 | + // Coloco as primeiras palavras em maiúsculo | |
78 | + $controller = ucwords($controller); | |
79 | + // Substituo o espaço em branco para juntar as palavras | |
80 | + $controller = str_replace(" ", "", $controller); | |
81 | + //echo "<br />{$controller}"; | |
82 | + return $controller; | |
83 | + } | |
84 | + | |
85 | + // método que trata o nome do método passado na url | |
86 | + public function validarMetodo($metodo) { | |
87 | + // retiro os espaços entre as palavras e acrescento as palavras para | |
88 | + // o primeiro caracter em minúsculo | |
89 | + // separa o - para retirá-lo | |
90 | + $metodo = explode("-", strtolower($metodo)); | |
91 | + // Junto através de espaços para que eu possa colocar as primeiras em maiúsculo | |
92 | + $metodo = implode(" ", $metodo); | |
93 | + // Coloco as primeiras palavras em maiúsculo | |
94 | + $metodo = ucwords($metodo); | |
95 | + // Substituo o espaço em branco para juntar as palavras e coloco a primeira em minúsculo | |
96 | + $metodo = lcfirst(str_replace(" ", "", $metodo)); | |
97 | + //echo "<br />{$metodo}"; | |
98 | + // retorna o nome do método, com o primeiro caracter em minúsculo. Ex.: index | |
99 | + return $metodo; | |
100 | + } | |
101 | + | |
102 | + public function carregar() { | |
103 | + //Verifica se a classe que está na urlController existe | |
104 | + //echo "Classe a ser carregada: {$this->urlController}"; | |
105 | + if (class_exists($this->urlController)) { | |
106 | + try { | |
107 | + // verifica se o usuario está logado | |
108 | + $this->validarSessao(); | |
109 | + // peço para carregar o método | |
110 | + $this->carregarMetodo(); | |
111 | + } catch (Exception $e) { | |
112 | + echo "Erro ao carregar a classe e o método: " . $e->getMessage() . "<br />"; | |
113 | + $this->urlController = $this->validarController(CONTROLLER); | |
114 | + $this->urlMetodo = $this->validarMetodo(METHOD); | |
115 | + $this->carregar(); | |
116 | + } | |
117 | + }else { | |
118 | + //echo "Erro ao carregar a classe {$this->urlController} <br />"; | |
119 | + $this->urlController = $this->validarController(CONTROLLER); | |
120 | + $this->urlMetodo = $this->validarMetodo(METHOD); | |
121 | + $this->carregar(); | |
122 | + } | |
123 | + } | |
124 | + | |
125 | + public function carregarMetodo() | |
126 | + { | |
127 | + $classeCarregar = new $this->urlController(); | |
128 | + | |
129 | + //Verificar se existe o método | |
130 | + if (method_exists($classeCarregar, $this->urlMetodo)){ | |
131 | + //echo "<br />Método a ser carregador: {$this->urlMetodo}"; | |
132 | + if ($this->urlParametro !== null) { | |
133 | + $classeCarregar->{$this->urlMetodo}($this->urlParametro); | |
134 | + }else { | |
135 | + $classeCarregar->{$this->urlMetodo}(); | |
136 | + } | |
137 | + }else{ | |
138 | + //echo "<br />Erro ao carregar o método: {$this->urlMetodo}"; | |
139 | + $this->urlController = $this->validarController(CONTROLLER); | |
140 | + $this->urlMetodo = $this->validarMetodo(METHOD); | |
141 | + $this->carregarMetodo(); | |
142 | + } | |
143 | + } | |
144 | + | |
145 | + private function validarSessao(){ | |
146 | + if (!isset($_SESSION['id'])) { | |
147 | + if (($this->urlController != 'ControllerAuth') && ($this->urlMetodo != 'auth')){ | |
148 | + $_SESSION['msg'] = " | |
149 | + <div class='alert alert-danger' role='alert'> | |
150 | + Você não pode acessar esta página. Realize o login primeiro! | |
151 | + </div> | |
152 | + "; | |
153 | + $this->urlController = 'ControllerAuth'; | |
154 | + $this->urlMetodo = 'auth'; | |
155 | + } | |
156 | + } | |
157 | + } | |
158 | + | |
159 | +} | |
0 | 160 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/config/ConfigView.php | |
... | ... | @@ -0,0 +1,35 @@ |
1 | +<?php | |
2 | + | |
3 | +class ConfigView{ | |
4 | + private $nome; | |
5 | + | |
6 | + public function __construct($nome, array $dados = null){ | |
7 | + $this->nome = (string) $nome; | |
8 | + $this->dados = $dados; | |
9 | + //var_dump($this->dados); | |
10 | + } | |
11 | + | |
12 | + public function renderizar(){ | |
13 | + include_once('views/includes/header.php'); | |
14 | + include_once('views/includes/menu.php'); | |
15 | + include_once('views/includes/footer.php'); | |
16 | + if (file_exists("views/{$this->nome}.php")){ | |
17 | + include_once("views/{$this->nome}.php"); | |
18 | + }else{ | |
19 | + echo "Erro ao carregar a view: {$this->nome}"; | |
20 | + } | |
21 | + } | |
22 | + | |
23 | + public function renderizarAuth() | |
24 | + { | |
25 | + if (file_exists('views/' . $this->nome . '.php')){ | |
26 | + include 'views/' . $this->nome . '.php'; | |
27 | + } | |
28 | + } | |
29 | + | |
30 | + | |
31 | + public function getDados(){ | |
32 | + return $this->dados; | |
33 | + } | |
34 | + | |
35 | +} | |
0 | 36 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/controllers/ControllerAuth.php | |
... | ... | @@ -0,0 +1,50 @@ |
1 | +<?php | |
2 | +class ControllerAuth { | |
3 | + private $dados; | |
4 | + | |
5 | + public function auth() { | |
6 | + $this->dados = filter_input_array(INPUT_POST, FILTER_DEFAULT); | |
7 | + if (isset($this->dados['sendLogin'])) { | |
8 | + unset($this->dados['sendLogin']); | |
9 | + //var_dump($this->dados); | |
10 | + if (($this->dados['email'] != null) && ($this->dados['password'] != null)) { | |
11 | + $login = new ModelsAuth(); | |
12 | + $login->autenticar($this->dados); | |
13 | + if (!$login->getResult()) { | |
14 | + $_SESSION['msg'] = $login->getMsg(); | |
15 | + }else { | |
16 | + $this->dados = $login->getResult(); | |
17 | + $this->dados = $this->dados[0]; | |
18 | + $_SESSION['id'] = $this->dados['id']; | |
19 | + $_SESSION['nome'] = $this->dados['nome']; | |
20 | + $_SESSION['email'] = $this->dados['email']; | |
21 | + $urlDestino = URL . 'controller-home/index'; | |
22 | + header("Location: $urlDestino"); | |
23 | + } | |
24 | + }else{ | |
25 | + $_SESSION['msg'] = " | |
26 | + <div class='alert alert-danger' role='alert'> | |
27 | + Login e senha devem ser preenchidos! | |
28 | + </div> | |
29 | + "; | |
30 | + } | |
31 | + }else { | |
32 | + $this->dados = null; | |
33 | + } | |
34 | + | |
35 | + | |
36 | + $carregarView = new ConfigView("auth/login", $this->dados); | |
37 | + $carregarView->renderizarAuth(); | |
38 | + } | |
39 | + | |
40 | + public function logout() { | |
41 | + $_SESSION['msg'] = " | |
42 | + <div class='alert alert-primary' role='alert'> | |
43 | + Usuário {$_SESSION['nome']} deslogado com sucesso! | |
44 | + </div> | |
45 | + "; | |
46 | + unset($_SESSION['id'], $_SESSION['nome'], $_SESSION['email']); | |
47 | + $urlDestino = URL . 'controller-auth/auth'; | |
48 | + header("Location: $urlDestino"); | |
49 | + } | |
50 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/controllers/ControllerUsers.php | |
... | ... | @@ -0,0 +1,82 @@ |
1 | +<?php | |
2 | + Class ControllerUsers{ | |
3 | + private $dados; | |
4 | + private $userId; | |
5 | + | |
6 | + public function index(){ | |
7 | + $listarUsers = new ModelsUsers(); | |
8 | + $this->dados = $listarUsers->listar(); | |
9 | + //var_dump($this->dados); | |
10 | + $carregarView = new ConfigView("users/listarUsers", $this->dados); | |
11 | + $carregarView->renderizar(); | |
12 | + } | |
13 | + | |
14 | + public function visualizar($userId){ | |
15 | + $visualizarUser = new ModelsUsers(); | |
16 | + $this->dados = $visualizarUser->visualizar($userId); | |
17 | + $carregarView = new ConfigView("users/visualizarUsers", $this->dados); | |
18 | + $carregarView->renderizar(); | |
19 | + } | |
20 | + | |
21 | + public function inserir(){ | |
22 | + $this->dados = filter_input_array(INPUT_POST, FILTER_DEFAULT); | |
23 | + if (isset($this->dados['enviarInserirUser'])){ | |
24 | + unset($this->dados['enviarInserirUser']); | |
25 | + //var_dump($this->dados); | |
26 | + $inserirUsuario = new ModelsUsers(); | |
27 | + $inserirUsuario->inserir($this->dados); | |
28 | + $this->dados['msg'] = $inserirUsuario->getMsg(); | |
29 | + if ($inserirUsuario->getResult()){ | |
30 | + $urlDestino = URL .'ControllerUsers/index'; | |
31 | + header("location: {$urlDestino}"); | |
32 | + } | |
33 | + } | |
34 | + | |
35 | + $carregarView = new ConfigView("users/inserirUsers", $this->dados); | |
36 | + $carregarView->renderizar(); | |
37 | + } | |
38 | + | |
39 | + public function editar($userId) { | |
40 | + $this->dados = filter_input_array(INPUT_POST, FILTER_DEFAULT); | |
41 | + $this->userId = (int) $userId; | |
42 | + //var_dump($this->dados); | |
43 | + if (isset($this->dados['enviarEditarUser'])) { | |
44 | + //var_dump($this->dados); | |
45 | + unset($this->dados['enviarEditarUser']); | |
46 | + $editarUsuario = new ModelsUsers(); | |
47 | + $editarUsuario->editar($userId, $this->dados); | |
48 | + $this->dados['msg'] = $editarUsuario->getMsg(); | |
49 | + | |
50 | + if ($editarUsuario->getResult()) { | |
51 | + $urlDestino = URL . 'controller-users/index'; | |
52 | + header("Location: $urlDestino"); | |
53 | + } | |
54 | + }else { | |
55 | + $visualizarUser = new ModelsUsers(); | |
56 | + $this->dados = $visualizarUser->visualizar($this->userId); | |
57 | + $this->dados = $this->dados[0]; | |
58 | + //var_dump($this->dados); | |
59 | + } | |
60 | + | |
61 | + $CarregarView = new ConfigView("users/editarUsers", $this->dados); | |
62 | + $CarregarView->renderizar(); | |
63 | + } | |
64 | + | |
65 | + public function apagar($userId = null){ | |
66 | + $this->userId = (int) $userId; | |
67 | + if ($this->userId != null){ | |
68 | + $apagarUser = new ModelsUsers(); | |
69 | + $apagarUser->apagar($this->userId); | |
70 | + $_SESSION['msg'] = $apagarUser->getMsg(); | |
71 | + }else{ | |
72 | + $_SESSION['msg'] = " | |
73 | + <div class='alert alert-danger' role='alert'> | |
74 | + Erro: O id usuário não foi informado! | |
75 | + </div> | |
76 | + "; | |
77 | + } | |
78 | + $urlDestino = URL . 'controller-users/index'; | |
79 | + header("Location: $urlDestino"); | |
80 | + } | |
81 | + | |
82 | +} | |
0 | 83 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/ModelsAuth.php | |
... | ... | @@ -0,0 +1,62 @@ |
1 | +<?php | |
2 | + | |
3 | +class ModelsAuth { | |
4 | + | |
5 | + private $dados; | |
6 | + private $result; | |
7 | + private $msg; | |
8 | + private $rowCount; | |
9 | + | |
10 | + const ENTITY = "users"; | |
11 | + | |
12 | + public function autenticar(array $dados) { | |
13 | + $this->dados = $dados; | |
14 | + $this->validar(); | |
15 | + if ($this->result){ | |
16 | + $visulizar = new ModelsRead(); | |
17 | + $visulizar->exeRead(self::ENTITY, 'WHERE email =:email AND password =:password LIMIT :limit', | |
18 | + "email={$this->dados['email']}&password={$this->dados['password']}&limit=1"); | |
19 | + if ($visulizar->getRowCount() == 1) { | |
20 | + //var_dump($Visulizar->getResultado()); | |
21 | + $this->result = $visulizar->getResult(); | |
22 | + }else { | |
23 | + $this->result = false; | |
24 | + $this->msg = " | |
25 | + <div class='alert alert-danger' role='alert'> | |
26 | + Login e/ou senhas incorretos! | |
27 | + </div> | |
28 | + "; | |
29 | + } | |
30 | + } | |
31 | + } | |
32 | + | |
33 | + public function validar() | |
34 | + { | |
35 | + $this->dados = array_map('strip_tags', $this->dados); | |
36 | + $this->dados = array_map('trim', $this->dados); | |
37 | + if (in_array('', $this->dados)){ | |
38 | + $this->result = false; | |
39 | + $this->msg = " | |
40 | + <div class='alert alert-danger' role='alert'> | |
41 | + Login e/ou senhas incorretos! | |
42 | + </div> | |
43 | + "; | |
44 | + }else{ | |
45 | + $this->dados['password'] = md5($this->dados['password']); | |
46 | + $this->result = true; | |
47 | + } | |
48 | + } | |
49 | + | |
50 | + function getResult() { | |
51 | + return $this->result; | |
52 | + } | |
53 | + | |
54 | + function getMsg() { | |
55 | + return $this->msg; | |
56 | + } | |
57 | + | |
58 | + function getRowCount() { | |
59 | + return $this->rowCount; | |
60 | + } | |
61 | + | |
62 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/ModelsUsers.php | |
... | ... | @@ -0,0 +1,120 @@ |
1 | +<?php | |
2 | +class ModelsUsers{ | |
3 | + private $result; | |
4 | + private $userId; | |
5 | + private $dados; | |
6 | + private $msg; | |
7 | + | |
8 | + const ENTITY = 'users'; | |
9 | + | |
10 | + public function listar(){ | |
11 | + $listar = new ModelsRead(); | |
12 | + $listar->exeRead('users', 'LIMIT :limit', 'limit=10'); | |
13 | + $this->result = $listar->getResult(); | |
14 | + return $this->result; | |
15 | + } | |
16 | + | |
17 | + public function visualizar($userId){ | |
18 | + $this->userId = (int) $userId; | |
19 | + $listar = new ModelsRead(); | |
20 | + $listar->exeRead(self::ENTITY, 'WHERE id =:id LIMIT :limit', | |
21 | + "id={$this->userId}&limit=1"); | |
22 | + $this->result = $listar->getResult(); | |
23 | + return $this->result; | |
24 | + } | |
25 | + | |
26 | + public function inserir(array $dados){ | |
27 | + $this->dados = $dados; | |
28 | + $this->validarDados($dados); | |
29 | + if ($this->result){ | |
30 | + $create = new ModelsCreate; | |
31 | + $create->exeCreate(self::ENTITY, $this->dados); | |
32 | + if ($create->getResult()){ | |
33 | + $this->result = $create->getResult(); | |
34 | + $this->msg = " | |
35 | + <div class='alert alert-success' role='alert'> | |
36 | + O usuário {$this->dados['nome']} foi cadastrado com sucesso! | |
37 | + </div> | |
38 | + "; | |
39 | + } | |
40 | + } | |
41 | + return $this->result; | |
42 | + } | |
43 | + | |
44 | + public function validarDados(){ | |
45 | + $this->dados = array_map('strip_tags', $this->dados); | |
46 | + $this->dados = array_map('trim', $this->dados); | |
47 | + if (in_array('', $this->dados)){ | |
48 | + $this->result = false; | |
49 | + $this->msg = " | |
50 | + <div class='alert alert-danger' role='alert'> | |
51 | + <strong>Erro ao cadastrar:</strong> Os campos obrigatórios não foram preenchidos! | |
52 | + </div> | |
53 | + "; | |
54 | + }else{ | |
55 | + $this->dados['password'] = md5($this->dados['password']); | |
56 | + $this->result = true; | |
57 | + } | |
58 | + } | |
59 | + | |
60 | + public function editar($userId, array $dados) { | |
61 | + $this->userId = (int) $userId; | |
62 | + $this->dados = $dados; | |
63 | + | |
64 | + $this->validarDados(); | |
65 | + if ($this->result) { | |
66 | + $this->procEditar(); | |
67 | + } | |
68 | + } | |
69 | + | |
70 | + private function procEditar() { | |
71 | + $update = new ModelsUpdate(); | |
72 | + $update->exeUpdate(self::ENTITY, $this->dados, "WHERE id = :id", "id={$this->userId }"); | |
73 | + if ($update->getResult()){ | |
74 | + $this->msg = " | |
75 | + <div class='alert alert-success' role='alert'> | |
76 | + O usuário {$this->dados['nome']} foi editado com sucesso! | |
77 | + </div> | |
78 | + "; | |
79 | + $this->result = true; | |
80 | + }else{ | |
81 | + $this->msg = " | |
82 | + <div class='alert alert-danger' role='alert'> | |
83 | + Erro: O usuário {$this->dados['nome']} não foi editado com sucesso! | |
84 | + </div> | |
85 | + "; | |
86 | + $this->result = false; | |
87 | + } | |
88 | + } | |
89 | + | |
90 | + public function apagar($userId){ | |
91 | + $this->userId = (int) $userId; | |
92 | + $this->dados = $this->visualizar($this->userId); | |
93 | + if (count($this->dados) > 0){ | |
94 | + $delete = new ModelsDelete(); | |
95 | + $delete->exeDelete(self::ENTITY, "WHERE id = :id", "id={$this->userId }"); | |
96 | + $this->msg = " | |
97 | + <div class='alert alert-success' role='alert'> | |
98 | + O usuário {$this->userId} foi apagado com sucesso! | |
99 | + </div> | |
100 | + "; | |
101 | + $this->result = $delete->getResult(); | |
102 | + }else{ | |
103 | + $this->msg = " | |
104 | + <div class='alert alert-danger' role='alert'> | |
105 | + Erro: O usuário {$this->userId} não foi apagado com sucesso! | |
106 | + </div> | |
107 | + "; | |
108 | + $this->result = false; | |
109 | + } | |
110 | + } | |
111 | + | |
112 | + public function getMsg() | |
113 | + { | |
114 | + return $this->msg; | |
115 | + } | |
116 | + | |
117 | + public function getResult(){ | |
118 | + return $this->result; | |
119 | + } | |
120 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/helper/ModelsConn.php | |
... | ... | @@ -0,0 +1,29 @@ |
1 | +<?php | |
2 | + | |
3 | +# abstract para não ser instanciada | |
4 | +abstract class ModelsConn { | |
5 | + public static $HOST = HOST; | |
6 | + public static $USER = USER; | |
7 | + public static $PASS = PASS; | |
8 | + public static $DBNAME = DBNAME; | |
9 | + private static $CONNECT = null; | |
10 | + | |
11 | + private static function conectar(){ | |
12 | + try{ | |
13 | + if(self::$CONNECT == null) { | |
14 | + self::$CONNECT = new PDO('mysql:host=' . self::$HOST . ';dbname=' | |
15 | + . self::$DBNAME . ';charset=utf8', self::$USER, self::$PASS); | |
16 | + //echo "<br />Conectado com sucesso!"; | |
17 | + } | |
18 | + } catch (Exception $e) { | |
19 | + echo 'Mensagem: ' . $e->getMessage(); | |
20 | + die; | |
21 | + } | |
22 | + self::$CONNECT->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
23 | + return self::$CONNECT; | |
24 | + } | |
25 | + | |
26 | + protected static function getConn(){ | |
27 | + return self::conectar(); | |
28 | + } | |
29 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/helper/ModelsCreate.php | |
... | ... | @@ -0,0 +1,49 @@ |
1 | +<?php | |
2 | + | |
3 | +class ModelsCreate extends ModelsConn { | |
4 | + private $tabela; | |
5 | + private $dados; | |
6 | + private $query; | |
7 | + private $conn; | |
8 | + private $msg; | |
9 | + private $result; | |
10 | + | |
11 | + public function ExeCreate($tabela, array $dados){ | |
12 | + $this->tabela = (string) $tabela; | |
13 | + $this->dados = $dados; | |
14 | + | |
15 | + $this->getInstrucao(); | |
16 | + $this->executarInstrucao(); | |
17 | + } | |
18 | + | |
19 | + public function getInstrucao(){ | |
20 | + $keys = implode(', ', array_keys($this->dados)); | |
21 | + $values = ':' . implode(', :', array_keys($this->dados)); | |
22 | + | |
23 | + $this->query = "INSERT INTO {$this->tabela} ({$keys}) VALUES ({$values})"; | |
24 | + } | |
25 | + | |
26 | + private function executarInstrucao() { | |
27 | + $this->conexao(); | |
28 | + try { | |
29 | + $this->query->execute($this->dados); | |
30 | + $this->result = $this->conn->lastInsertId(); | |
31 | + }catch (Exception $e) { | |
32 | + $this->result = null; | |
33 | + return "<strong>Erro ao Cadastrar: </strong> {$e->getMessage()}"; | |
34 | + } | |
35 | + } | |
36 | + | |
37 | + public function conexao(){ | |
38 | + $this->conn = parent::getConn(); | |
39 | + $this->query = $this->conn->prepare($this->query); | |
40 | + } | |
41 | + | |
42 | + public function getMsg(){ | |
43 | + return $this->msg; | |
44 | + } | |
45 | + | |
46 | + public function getResult(){ | |
47 | + return $this->result; | |
48 | + } | |
49 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/helper/ModelsDelete.php | |
... | ... | @@ -0,0 +1,59 @@ |
1 | +<?php | |
2 | + | |
3 | +class ModelsDelete extends ModelsConn { | |
4 | + | |
5 | + private $tabela; | |
6 | + private $termos; | |
7 | + private $values; | |
8 | + private $result; | |
9 | + private $msg; | |
10 | + private $query; | |
11 | + private $conn; | |
12 | + | |
13 | + public function exeDelete($tabela, $termos, $parseString) { | |
14 | + $this->tabela = (string) $tabela; | |
15 | + $this->termos = (string) $termos; | |
16 | + | |
17 | + parse_str($parseString, $this->values); | |
18 | + | |
19 | + $this->getInstrucao(); | |
20 | + $this->executarInstrucao(); | |
21 | + } | |
22 | + | |
23 | + public function getResult() { | |
24 | + return $this->result; | |
25 | + } | |
26 | + | |
27 | + public function getMsg() { | |
28 | + return $this->msg; | |
29 | + } | |
30 | + | |
31 | + public function getRowCount() { | |
32 | + return $this->query->rowCount(); | |
33 | + } | |
34 | + | |
35 | + private function conexao() { | |
36 | + $this->conn = parent::getConn(); | |
37 | + $this->query = $this->conn->prepare($this->query); | |
38 | + } | |
39 | + | |
40 | + private function getInstrucao() { | |
41 | + $this->query = "DELETE FROM {$this->tabela} {$this->termos}"; | |
42 | + } | |
43 | + | |
44 | + private function executarInstrucao() { | |
45 | + $this->conexao(); | |
46 | + try { | |
47 | + $this->query->execute($this->values); | |
48 | + $this->result = true; | |
49 | + $this->msg = "<div class=\"alert alert-success\" role=\"alert\"> | |
50 | + Usuário apagado com sucesso! | |
51 | + </div>"; | |
52 | + } catch (Exception $e) { | |
53 | + $this->result = null; | |
54 | + $this->msg = "<div class=\"alert alert-danger\" role=\"alert\"> | |
55 | + Erro ao Apagar</b> {$e->getMessage()} | |
56 | + </div>"; | |
57 | + } | |
58 | + } | |
59 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/helper/ModelsRead.php | |
... | ... | @@ -0,0 +1,70 @@ |
1 | +<?php | |
2 | + | |
3 | +class ModelsRead extends ModelsConn { | |
4 | + | |
5 | + private $select; | |
6 | + private $values; | |
7 | + private $result; | |
8 | + private $msg; | |
9 | + private $query; | |
10 | + private $conn; | |
11 | + | |
12 | + public function exeRead($tabela, $termos = null, $parseString = null) { | |
13 | + if (!empty($parseString)) { | |
14 | + // Caso tenha sido passado algum parâmetro, ele será colocado no array $this->values | |
15 | + parse_str($parseString, $this->values); | |
16 | + } | |
17 | + // Montando a SQL para busca em BD | |
18 | + $this->select = "SELECT * FROM {$tabela} {$termos}"; | |
19 | + $this->executarInstrucao(); | |
20 | + } | |
21 | + | |
22 | + private function getInstrucao(){ | |
23 | + if ($this->values) { | |
24 | + foreach ($this->values as $link => $valor) { | |
25 | + if ($link == 'limit' || $link == 'offset') { | |
26 | + $valor = (int)$valor; | |
27 | + } | |
28 | + // garantido a integridade dos valores passados (bindvalue) | |
29 | + $this->query->bindValue(":{$link}", $valor, (is_int($valor) ? PDO::PARAM_INT : PDO::PARAM_STR)); | |
30 | + } | |
31 | + } | |
32 | + } | |
33 | + private function executarInstrucao(){ | |
34 | + $this->conexao(); | |
35 | + try{ | |
36 | + // associando os atributos aos identificadores para a SQL | |
37 | + $this->getInstrucao(); | |
38 | + $this->query->execute(); | |
39 | + // traz todas as linhas do registro | |
40 | + $this->result = $this->query->fetchAll(); | |
41 | + }catch (PDOException $e){ | |
42 | + $this->result = null; | |
43 | + $this->msg = "<strong>Erro ao Ler dados:</strong> {$e->getMessage()}"; | |
44 | + } | |
45 | + } | |
46 | + | |
47 | + private function conexao(){ | |
48 | + // chamando o método da classe pai | |
49 | + $this->conn = parent::getConn(); | |
50 | + // preparando a SQL | |
51 | + $this->query = $this->conn->prepare($this->select); | |
52 | + // colocando o modo de exibição da query como ASSOCIAÇÃO (nome dos campos) | |
53 | + $this->query->setFetchMode(PDO::FETCH_ASSOC); | |
54 | + } | |
55 | + | |
56 | + | |
57 | + | |
58 | + // GETTERS IMPORTANTES PARA ACESSO EXTERNO | |
59 | + public function getResult(){ | |
60 | + return $this->result; | |
61 | + } | |
62 | + | |
63 | + public function getMsg(){ | |
64 | + return $this->msg; | |
65 | + } | |
66 | + | |
67 | + public function getRowCount() { | |
68 | + return $this->query->rowCount(); | |
69 | + } | |
70 | +} | |
0 | 71 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/models/helper/ModelsUpdate.php | |
... | ... | @@ -0,0 +1,62 @@ |
1 | +<?php | |
2 | +class ModelsUpdate extends ModelsConn { | |
3 | + private $tabela; | |
4 | + private $dados; | |
5 | + private $termos; | |
6 | + private $values; | |
7 | + private $result; | |
8 | + private $msg; | |
9 | + private $query; | |
10 | + private $conn; | |
11 | + | |
12 | + public function exeUpdate($tabela, array $dados, $termos, $parseString) { | |
13 | + $this->tabela = (string) $tabela; | |
14 | + $this->dados = $dados; | |
15 | + $this->termos = (string) $termos; | |
16 | + | |
17 | + parse_str($parseString, $this->values); | |
18 | + $this->getIntrucao(); | |
19 | + $this->executarInstrucao(); | |
20 | + } | |
21 | + | |
22 | + public function getResult() { | |
23 | + return $this->result; | |
24 | + } | |
25 | + | |
26 | + public function getMsg() { | |
27 | + return $this->msg; | |
28 | + } | |
29 | + | |
30 | + public function getRowCount() { | |
31 | + return $this->query->rowCount; | |
32 | + } | |
33 | + | |
34 | + public function conexao() { | |
35 | + $this->conn = parent::getConn(); | |
36 | + $this->query = $this->conn->prepare($this->query); | |
37 | + } | |
38 | + | |
39 | + private function getIntrucao() { | |
40 | + foreach ($this->dados as $key => $value) { | |
41 | + $values[] = $key . ' = :' . $key; | |
42 | + } | |
43 | + $values = implode(', ', $values); | |
44 | + $this->query = "UPDATE {$this->tabela} SET {$values} {$this->termos}"; | |
45 | + } | |
46 | + | |
47 | + private function executarInstrucao(){ | |
48 | + $this->conexao(); | |
49 | + try { | |
50 | + $this->query->execute(array_merge($this->dados, $this->values)); | |
51 | + $this->result = true; | |
52 | + $this->msg = "<div class=\"alert alert-danger\" role=\"alert\"> | |
53 | + Usuário alterado com sucesso! | |
54 | + </div>"; | |
55 | + } catch (Exception $e) { | |
56 | + $this->result = null; | |
57 | + $this->msg = "<div class=\"alert alert-success\" role=\"alert\"> | |
58 | + Erro ao Alterar</b> {$e->getMessage()} | |
59 | + </div>"; | |
60 | + } | |
61 | + } | |
62 | +} | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/auth/login.php | |
... | ... | @@ -0,0 +1,38 @@ |
1 | +<!DOCTYPE html> | |
2 | +<html lang="pt-br"> | |
3 | +<head> | |
4 | + <meta charset="utf-8" /> | |
5 | + <title>Bem vindo!</title> | |
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
7 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" /> | |
8 | + <link rel="stylesheet" href="<?php echo URL;?>assets/css/signin.css" /> | |
9 | +</head> | |
10 | +<body class="text-center"> | |
11 | +<div class="container"> | |
12 | + <form class="form-signin" method="post" action=""> | |
13 | + <img class="mb-4" src="https://getbootstrap.com/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72"> | |
14 | + <h1 class="h3 mb-3 font-weight-normal">Área Administrativa</h1> | |
15 | + <?php | |
16 | + if (isset($_SESSION['msg'])) { | |
17 | + echo $_SESSION['msg']; | |
18 | + unset($_SESSION['msg']); | |
19 | + } | |
20 | + ?> | |
21 | + <label for="iEmail" class="sr-only">E-mail:</label> | |
22 | + <input type="email" class="form-control" name="email" id="iEmail" placeholder="Digite seu e-mail" required autofocus> | |
23 | + <label for="iSenha" class="sr-only">Senha:</label> | |
24 | + <input type="password" class="form-control" name="password" id="iSenha" placeholder="Digite sua senha" required> | |
25 | + <div class="checkbox mb-3"> | |
26 | + <label> | |
27 | + <input type="checkbox" value="remember-me"> Lembre-me | |
28 | + </label> | |
29 | + </div> | |
30 | + <button class="btn btn-lg btn-primary btn-block" name="sendLogin" type="submit">Logar</button> | |
31 | + </form> | |
32 | + | |
33 | + <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | |
34 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script> | |
35 | + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> | |
36 | +</div> | |
37 | +</body> | |
38 | +</html> | |
0 | 39 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/home/index.php | |
... | ... | @@ -0,0 +1,11 @@ |
1 | + | |
2 | + <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4"> | |
3 | + <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> | |
4 | + <h1 class="h2">Dashboard</h1> | |
5 | + <div class="btn-toolbar mb-2 mb-md-0"> | |
6 | + | |
7 | + </div> | |
8 | + <div>Bem vindo!</div> | |
9 | + </div> | |
10 | + | |
11 | + </main> | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/includes/footer.php | |
... | ... | @@ -0,0 +1,14 @@ |
1 | +</div> | |
2 | +</div> | |
3 | + | |
4 | +<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | |
5 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script> | |
6 | +<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> | |
7 | + | |
8 | +<!-- Icons --> | |
9 | +<script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script> | |
10 | +<script> | |
11 | + feather.replace() | |
12 | +</script> | |
13 | +</body> | |
14 | +</html> | |
0 | 15 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/includes/header.php | |
... | ... | @@ -0,0 +1,23 @@ |
1 | +<!DOCTYPE html> | |
2 | +<html lang="pt-br"> | |
3 | +<head> | |
4 | + <meta charset="utf-8" /> | |
5 | + <title>Bem vindo!</title> | |
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
7 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" /> | |
8 | + <!-- Custom styles for this template --> | |
9 | + <link href="<?php echo URL; ?>assets/css/dashboard.css" rel="stylesheet"> | |
10 | +</head> | |
11 | +<body> | |
12 | + | |
13 | +<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow"> | |
14 | + <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">Projeto Gol</a> | |
15 | + <ul class="navbar-nav px-3"> | |
16 | + <li class="nav-item text-nowrap"> | |
17 | + <a class="nav-link" href="<?= URL ?>Controller-auth/logout">Logout</a> | |
18 | + </li> | |
19 | + </ul> | |
20 | +</nav> | |
21 | + | |
22 | +<div class="container-fluid"> | |
23 | + <div class="row"> | |
0 | 24 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/includes/menu.php | |
... | ... | @@ -0,0 +1,75 @@ |
1 | +<nav class="col-md-2 d-none d-md-block bg-light sidebar"> | |
2 | + <div class="sidebar-sticky"> | |
3 | + <ul class="nav flex-column"> | |
4 | + <li class="nav-item"> | |
5 | + <a class="nav-link active" href="#"> | |
6 | + <span data-feather="home"></span> | |
7 | + Dashboard <span class="sr-only">(current)</span> | |
8 | + </a> | |
9 | + </li> | |
10 | + <li class="nav-item"> | |
11 | + <a class="nav-link" href="<?= URL ?>Controller-users/index"> | |
12 | + <span data-feather="users"></span> | |
13 | + Listar Usuários | |
14 | + </a> | |
15 | + </li> | |
16 | + <li class="nav-item"> | |
17 | + <a class="nav-link" href="<?= URL ?>Controller-users/inserir"> | |
18 | + <span data-feather="users"></span> | |
19 | + Inserir Usuários | |
20 | + </a> | |
21 | + </li> | |
22 | + <li class="nav-item"> | |
23 | + <a class="nav-link" href="#"> | |
24 | + <span data-feather="users"></span> | |
25 | + Customers | |
26 | + </a> | |
27 | + </li> | |
28 | + <li class="nav-item"> | |
29 | + <a class="nav-link" href="#"> | |
30 | + <span data-feather="bar-chart-2"></span> | |
31 | + Reports | |
32 | + </a> | |
33 | + </li> | |
34 | + <li class="nav-item"> | |
35 | + <a class="nav-link" href="#"> | |
36 | + <span data-feather="layers"></span> | |
37 | + Integrations | |
38 | + </a> | |
39 | + </li> | |
40 | + </ul> | |
41 | + | |
42 | + <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"> | |
43 | + <span>Saved reports</span> | |
44 | + <a class="d-flex align-items-center text-muted" href="#"> | |
45 | + <span data-feather="plus-circle"></span> | |
46 | + </a> | |
47 | + </h6> | |
48 | + <ul class="nav flex-column mb-2"> | |
49 | + <li class="nav-item"> | |
50 | + <a class="nav-link" href="#"> | |
51 | + <span data-feather="file-text"></span> | |
52 | + Current month | |
53 | + </a> | |
54 | + </li> | |
55 | + <li class="nav-item"> | |
56 | + <a class="nav-link" href="#"> | |
57 | + <span data-feather="file-text"></span> | |
58 | + Last quarter | |
59 | + </a> | |
60 | + </li> | |
61 | + <li class="nav-item"> | |
62 | + <a class="nav-link" href="#"> | |
63 | + <span data-feather="file-text"></span> | |
64 | + Social engagement | |
65 | + </a> | |
66 | + </li> | |
67 | + <li class="nav-item"> | |
68 | + <a class="nav-link" href="#"> | |
69 | + <span data-feather="file-text"></span> | |
70 | + Year-end sale | |
71 | + </a> | |
72 | + </li> | |
73 | + </ul> | |
74 | + </div> | |
75 | +</nav> | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/includes/menu_antigo.php | |
... | ... | @@ -0,0 +1,29 @@ |
1 | +<nav class="navbar navbar-expand-lg navbar-dark bg-primary"> | |
2 | + <a class="navbar-brand" href="#">Navbar</a> | |
3 | + <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation"> | |
4 | + <span class="navbar-toggler-icon"></span> | |
5 | + </button> | |
6 | + | |
7 | + <div class="collapse navbar-collapse" id="navbarColor02"> | |
8 | + <ul class="navbar-nav mr-auto"> | |
9 | + <li class="nav-item"> | |
10 | + <a class="nav-link" href="">Home</a> | |
11 | + </li> | |
12 | + <li class="nav-item"> | |
13 | + <a class="nav-link" href="<?= URL .'controller-users/index'; ?>">Listar</a> | |
14 | + </li> | |
15 | + <li class="nav-item"> | |
16 | + <a class="nav-link" href="<?= URL .'controller-users/inserir'; ?>">Inserir</a> | |
17 | + </li> | |
18 | + <li class="nav-item"> | |
19 | + <a class="nav-link" href="#">Sobre</a> | |
20 | + </li> | |
21 | + </ul> | |
22 | + <span class="navbar-text"> | |
23 | + <?php echo "Usuário: {$_SESSION['nome']}"; ?> | |
24 | + </span> | |
25 | + <span class="navbar-text"> | |
26 | + <a class="nav-link" href="<?= URL .'controller-auth/logout'; ?>">Sair</a> | |
27 | + </span> | |
28 | + </div> | |
29 | +</nav> | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/users/editarUsers.php | |
... | ... | @@ -0,0 +1,38 @@ |
1 | +<!DOCTYPE html> | |
2 | +<html lang="pt-br"> | |
3 | +<head> | |
4 | + <meta charset="utf-8" /> | |
5 | + <title>Edição de usuários</title> | |
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
7 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" /> | |
8 | +</head> | |
9 | +<body> | |
10 | +<?php | |
11 | + if (isset($this->dados['msg'])){ | |
12 | + echo $this->dados['msg']; | |
13 | + } | |
14 | +?> | |
15 | +<form name="formEditarUser" action="" method="post"> | |
16 | + <div class="form-group"> | |
17 | + <label for="iNome">Nome</label> | |
18 | + <input type="text" class="form-control" name="nome" id="iNome" placeholder="Seu nome aqui..." | |
19 | + value="<?php if (isset($this->dados['nome'])){ echo $this->dados['nome']; }?>" /> | |
20 | + </div> | |
21 | + <div class="form-group"> | |
22 | + <label for="iEmail">E-mail</label> | |
23 | + <input type="email" class="form-control" name="email" id="iEmail" placeholder="nome@examplo.com" | |
24 | + value="<?php if (isset($this->dados['email'])){ echo $this->dados['email']; }?>"/> | |
25 | + </div> | |
26 | + <div class="form-group"> | |
27 | + <label for="iPass">Password</label> | |
28 | + <input type="password" class="form-control" name="password" id="iPass" placeholder="Sua senha aqui..." | |
29 | + value="" /> | |
30 | + </div> | |
31 | + <button type="submit" name="enviarEditarUser" class="btn btn-primary">Editar</button> | |
32 | +</form> | |
33 | + | |
34 | + <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | |
35 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script> | |
36 | + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> | |
37 | +</body> | |
38 | +</html> | |
0 | 39 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/users/inserirUsers.php | |
... | ... | @@ -0,0 +1,38 @@ |
1 | +<!DOCTYPE html> | |
2 | +<html lang="pt-br"> | |
3 | +<head> | |
4 | + <meta charset="utf-8" /> | |
5 | + <title>Cadastro de usuários</title> | |
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
7 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" /> | |
8 | +</head> | |
9 | +<body> | |
10 | +<?php | |
11 | + if (isset($this->dados)){ | |
12 | + echo $this->dados['msg']; | |
13 | + } | |
14 | +?> | |
15 | +<form name="formInserirUser" action="" method="post"> | |
16 | + <div class="form-group"> | |
17 | + <label for="iNome">Nome</label> | |
18 | + <input type="text" class="form-control" name="nome" id="iNome" placeholder="Seu nome aqui..." | |
19 | + value="<?php if (isset($this->dados['nome'])){ echo $this->dados['nome']; }?>" /> | |
20 | + </div> | |
21 | + <div class="form-group"> | |
22 | + <label for="iEmail">E-mail</label> | |
23 | + <input type="email" class="form-control" name="email" id="iEmail" placeholder="nome@examplo.com" | |
24 | + value="<?php if (isset($this->dados['email'])){ echo $this->dados['email']; }?>"/> | |
25 | + </div> | |
26 | + <div class="form-group"> | |
27 | + <label for="iPass">Password</label> | |
28 | + <input type="password" class="form-control" name="password" id="iPass" placeholder="Sua senha aqui..." | |
29 | + value="" /> | |
30 | + </div> | |
31 | + <button type="submit" name="enviarInserirUser" class="btn btn-primary">Cadastrar</button> | |
32 | +</form> | |
33 | + | |
34 | + <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | |
35 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script> | |
36 | + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> | |
37 | +</body> | |
38 | +</html> | |
0 | 39 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/users/listarUsers.php | |
... | ... | @@ -0,0 +1,46 @@ |
1 | + | |
2 | + | |
3 | + | |
4 | +<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4"> | |
5 | + <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> | |
6 | + <h1 class="h2">Dashboard</h1> | |
7 | + <div class="btn-toolbar mb-2 mb-md-0"> | |
8 | + Registros Encontrados: <?php echo count($this->dados); ?> | |
9 | + </div> | |
10 | + </div> | |
11 | + <div class="table-responsive"> | |
12 | + <?php | |
13 | + if (isset($_SESSION['msg'])){ | |
14 | + echo $_SESSION['msg']; | |
15 | + unset($_SESSION['msg']); | |
16 | + } | |
17 | + ?> | |
18 | + <table class="table table-striped"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th scope="col">#</th> | |
22 | + <th scope="col">Nome</th> | |
23 | + <th scope="col">Criado em</th> | |
24 | + <th scope="col">Ações</th> | |
25 | + </tr> | |
26 | + </thead> | |
27 | + <tbody> | |
28 | + <?php | |
29 | + foreach($this->dados as $linha){ | |
30 | + extract($linha); | |
31 | + ?> | |
32 | + <tr> | |
33 | + <th scope="row"><?=$id?></th> | |
34 | + <td><?=$nome?></td> | |
35 | + <td><?=$criado?></td> | |
36 | + <td> | |
37 | + <a class="btn btn-primary" href="<?=URL?>/ControllerUsers/visualizar/<?=$id?>" role="button">Visualizar</a> | |
38 | + <a class="btn btn-warning" href="<?=URL?>/ControllerUsers/editar/<?=$id?>" role="button">Editar</a> | |
39 | + <a class="btn btn-danger" href="<?=URL?>/ControllerUsers/apagar/<?=$id?>" role="button">Apagar</a> | |
40 | + </td> | |
41 | + </tr> | |
42 | + <?php } ?> | |
43 | + </tbody> | |
44 | + </table> | |
45 | + </div> | |
46 | +</main> | |
0 | 47 | \ No newline at end of file | ... | ... |
1 | +++ a/ProjetoAdidas/adm/views/users/visualizarUsers.php | |
... | ... | @@ -0,0 +1,27 @@ |
1 | +<!DOCTYPE html> | |
2 | +<html lang="pt-br"> | |
3 | +<head> | |
4 | + <meta charset="utf-8" /> | |
5 | + <title>Visualizando os usuários</title> | |
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
7 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" /> | |
8 | +</head> | |
9 | +<body> | |
10 | +<nav aria-label="breadcrumb"> | |
11 | + <ol class="breadcrumb"> | |
12 | + <li class="breadcrumb-item">Controller-Users</li> | |
13 | + <li class="breadcrumb-item active" aria-current="page">Visualizar</li> | |
14 | + </ol> | |
15 | +</nav> | |
16 | +<?php | |
17 | + //var_dump($this->dados); | |
18 | + echo "ID: {$this->dados[0]['id']}<br />"; | |
19 | + echo "NOME: {$this->dados[0]['nome']}<br />"; | |
20 | + echo "CRIAÇÃO: {$this->dados[0]['criado']}<br /><hr />"; | |
21 | + | |
22 | +?> | |
23 | + <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | |
24 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script> | |
25 | + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> | |
26 | +</body> | |
27 | +</html> | |
0 | 28 | \ No newline at end of file | ... | ... |
No preview for this file type
No preview for this file type