Open MisiekDP opened 4 years ago
When I copy: I got in Word: {\rtf1\ansi\ansicpg1252 {\fonttbl\f0\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Regular;\f1\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Bold;\f2\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Italic;} {\colortbl;\red202\green18\blue67;\red56\green58\blue66;\red64\green120\blue242;\red56\green58\blue66;\red80\green161\blue79;\red166\green38\blue164;\red1\green132\blue188;\red228\green86\blue73;\red152\green104\blue1;\red193\green132\blue1;} \f0\fs24 \cf1 <?php \line \cf2 \cf3 include\cf4 (\cf5 "dbConnect.php"\cf4 ); \line \cf2 \cf6 if\cf4 (!\cf7 isset\cf4 (\cf8 $_SESSION\cf4 [\cf5 'email'\cf4 ])) \{ \line \cf2 \cf8 $_SESSION\cf4 [\cf5 'message'\cf4 ] = \cf5 "Musisz się zalogować!"\cf4 ; \line \cf2 \cf7 header\cf4 (\cf5 'location: login.php'\cf4 ); \line \cf2 \cf4 \} \line \cf2 \cf6 if\cf4 (\cf7 isset\cf4 (\cf8 $_GET\cf4 [\cf5 'logout'\cf4 ])) \{ \line \cf2 \cf7 session_destroy\cf4 (); \line \cf2 \cf7 unset\cf4 (\cf8 $_SESSION\cf4 [\cf5 'user'\cf4 ]); \line \cf2 \cf7 header\cf4 (\cf5 "location: login.php"\cf4 ); \line \cf2 \cf4 \} \line \cf2 \cf3 include\cf4 (\cf5 "header.php"\cf4 ); \line \cf1 ?> \line \cf4 \line <\cf8 body\cf4 \cf3 id\cf4 =\cf5 "page-top"\cf4 > \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "wrapper"\cf4 > \line \cf2 \cf1 <?php\cf4 \cf3 include\cf4 (\cf5 "nav.php"\cf4 ); \cf1 ?> \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "content-wrapper"\cf4 \cf9 class\cf10 =\cf5 "d-flex flex-column"\cf4 > \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "content"\cf4 > \line \cf2 \cf1 <?php\cf4 \cf3 include\cf4 (\cf5 "topbar.php"\cf4 ); \cf1 ?> \line \cf2 \cf4 <\cf8 div\cf4 \cf9 class\cf10 =\cf5 "container-fluid"\cf4 > \line \cf2 \cf4 <\cf8 h1\cf4 \cf9 class\cf10 =\cf5 "h3 mb-4 text-gray-800"\cf4 >Zarządzaj zadaniami</\cf8 h1\cf4 > \line \cf2 \cf1 <?php \line \cf2 \cf6 if\cf4 (!\cf8 $results_manage_tasks_get_tasks_projects_users\cf4 || \cf3 mysqli_num_rows\cf4 (\cf8 $results_manage_tasks_get_tasks_projects_users\cf4 ) == \cf9 0\cf4 ) \{ \line \cf2 \cf7 echo \line \cf2 \cf5 '<div class="col-lg mb-4"> \line \cf2 \cf5 <div class="card bg-warning text-white shadow"> \line \cf2 \cf5 <div class="card-body" style="text-align: center"> \line \cf2 \cf5 Brak zadań do wyświetlenia! \line \cf2 \cf5 </div> \line \cf2 \cf5 </div> \line \cf2 \cf5 </div>'\cf4 ; \line \cf2 \line \cf4 \} \line \cf2 \cf6 else \line \cf2 \cf4 \{ \line }
{\rtf1\ansi\ansicpg1252 {\fonttbl\f0\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Regular;\f1\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Bold;\f2\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Italic;} {\colortbl;\red202\green18\blue67;\red56\green58\blue66;\red64\green120\blue242;\red56\green58\blue66;\red80\green161\blue79;\red166\green38\blue164;\red1\green132\blue188;\red228\green86\blue73;\red152\green104\blue1;\red193\green132\blue1;} \f0\fs24 \cf1 <?php \line \cf2 \cf3 include\cf4 (\cf5 "dbConnect.php"\cf4 ); \line \cf2 \cf6 if\cf4 (!\cf7 isset\cf4 (\cf8 $_SESSION\cf4 [\cf5 'email'\cf4 ])) \{ \line \cf2 \cf8 $_SESSION\cf4 [\cf5 'message'\cf4 ] = \cf5 "Musisz się zalogować!"\cf4 ; \line \cf2 \cf7 header\cf4 (\cf5 'location: login.php'\cf4 ); \line \cf2 \cf4 \} \line \cf2 \cf6 if\cf4 (\cf7 isset\cf4 (\cf8 $_GET\cf4 [\cf5 'logout'\cf4 ])) \{ \line \cf2 \cf7 session_destroy\cf4 (); \line \cf2 \cf7 unset\cf4 (\cf8 $_SESSION\cf4 [\cf5 'user'\cf4 ]); \line \cf2 \cf7 header\cf4 (\cf5 "location: login.php"\cf4 ); \line \cf2 \cf4 \} \line \cf2 \cf3 include\cf4 (\cf5 "header.php"\cf4 ); \line \cf1 ?> \line \cf4 \line <\cf8 body\cf4 \cf3 id\cf4 =\cf5 "page-top"\cf4 > \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "wrapper"\cf4 > \line \cf2 \cf1 <?php\cf4 \cf3 include\cf4 (\cf5 "nav.php"\cf4 ); \cf1 ?> \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "content-wrapper"\cf4 \cf9 class\cf10 =\cf5 "d-flex flex-column"\cf4 > \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "content"\cf4 > \line \cf2 \cf1 <?php\cf4 \cf3 include\cf4 (\cf5 "topbar.php"\cf4 ); \cf1 ?> \line \cf2 \cf4 <\cf8 div\cf4 \cf9 class\cf10 =\cf5 "container-fluid"\cf4 > \line \cf2 \cf4 <\cf8 h1\cf4 \cf9 class\cf10 =\cf5 "h3 mb-4 text-gray-800"\cf4 >Zarządzaj zadaniami</\cf8 h1\cf4 > \line \cf2 \cf1 <?php \line \cf2 \cf6 if\cf4 (!\cf8 $results_manage_tasks_get_tasks_projects_users\cf4 || \cf3 mysqli_num_rows\cf4 (\cf8 $results_manage_tasks_get_tasks_projects_users\cf4 ) == \cf9 0\cf4 ) \{ \line \cf2 \cf7 echo \line \cf2 \cf5 '<div class="col-lg mb-4"> \line \cf2 \cf5 <div class="card bg-warning text-white shadow"> \line \cf2 \cf5 <div class="card-body" style="text-align: center"> \line \cf2 \cf5 Brak zadań do wyświetlenia! \line \cf2 \cf5 </div> \line \cf2 \cf5 </div> \line \cf2 \cf5 </div>'\cf4 ; \line \cf2 \line \cf4 \} \line \cf2 \cf6 else \line \cf2 \cf4 \{ \line }
w2 = 0. for p in model.parameters(): w2+= (p**2).sum()
Am also getting a similar error, while copy the above code with syntax highlighting.
When I copy: I got in Word:
{\rtf1\ansi\ansicpg1252 {\fonttbl\f0\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Regular;\f1\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Bold;\f2\fnil\fcharset0 Menlo,Consolas,"DejaVuSansMono",monospace-Italic;} {\colortbl;\red202\green18\blue67;\red56\green58\blue66;\red64\green120\blue242;\red56\green58\blue66;\red80\green161\blue79;\red166\green38\blue164;\red1\green132\blue188;\red228\green86\blue73;\red152\green104\blue1;\red193\green132\blue1;} \f0\fs24 \cf1 <?php \line \cf2 \cf3 include\cf4 (\cf5 "dbConnect.php"\cf4 ); \line \cf2 \cf6 if\cf4 (!\cf7 isset\cf4 (\cf8 $_SESSION\cf4 [\cf5 'email'\cf4 ])) \{ \line \cf2 \cf8 $_SESSION\cf4 [\cf5 'message'\cf4 ] = \cf5 "Musisz się zalogować!"\cf4 ; \line \cf2 \cf7 header\cf4 (\cf5 'location: login.php'\cf4 ); \line \cf2 \cf4 \} \line \cf2 \cf6 if\cf4 (\cf7 isset\cf4 (\cf8 $_GET\cf4 [\cf5 'logout'\cf4 ])) \{ \line \cf2 \cf7 session_destroy\cf4 (); \line \cf2 \cf7 unset\cf4 (\cf8 $_SESSION\cf4 [\cf5 'user'\cf4 ]); \line \cf2 \cf7 header\cf4 (\cf5 "location: login.php"\cf4 ); \line \cf2 \cf4 \} \line \cf2 \cf3 include\cf4 (\cf5 "header.php"\cf4 ); \line \cf1 ?> \line \cf4 \line <\cf8 body\cf4 \cf3 id\cf4 =\cf5 "page-top"\cf4 > \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "wrapper"\cf4 > \line \cf2 \cf1 <?php\cf4 \cf3 include\cf4 (\cf5 "nav.php"\cf4 ); \cf1 ?> \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "content-wrapper"\cf4 \cf9 class\cf10 =\cf5 "d-flex flex-column"\cf4 > \line \cf2 \cf4 <\cf8 div\cf4 \cf3 id\cf4 =\cf5 "content"\cf4 > \line \cf2 \cf1 <?php\cf4 \cf3 include\cf4 (\cf5 "topbar.php"\cf4 ); \cf1 ?> \line \cf2 \cf4 <\cf8 div\cf4 \cf9 class\cf10 =\cf5 "container-fluid"\cf4 > \line \cf2 \cf4 <\cf8 h1\cf4 \cf9 class\cf10 =\cf5 "h3 mb-4 text-gray-800"\cf4 >Zarządzaj zadaniami</\cf8 h1\cf4 > \line \cf2 \cf1 <?php \line \cf2 \cf6 if\cf4 (!\cf8 $results_manage_tasks_get_tasks_projects_users\cf4 || \cf3 mysqli_num_rows\cf4 (\cf8 $results_manage_tasks_get_tasks_projects_users\cf4 ) == \cf9 0\cf4 ) \{ \line \cf2 \cf7 echo \line \cf2 \cf5 '<div class="col-lg mb-4"> \line \cf2 \cf5 <div class="card bg-warning text-white shadow"> \line \cf2 \cf5 <div class="card-body" style="text-align: center"> \line \cf2 \cf5 Brak zadań do wyświetlenia! \line \cf2 \cf5 </div> \line \cf2 \cf5 </div> \line \cf2 \cf5 </div>'\cf4 ; \line \cf2 \line \cf4 \} \line \cf2 \cf6 else \line \cf2 \cf4 \{ \line }