adding table style to email
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 31 May 2016 20:29:53 +0000 (16:29 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 31 May 2016 20:29:53 +0000 (16:29 -0400)
models/front/events/frontAdd.php
views/front/events/ownerEmail.html

index 6be8619..e7c3c4a 100644 (file)
@@ -446,7 +446,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
                     );
 
         $smarty = new smartyTemplateSupport();
-        
+
         $eventsList = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL ."?page=glm-members-admin-menu-events-index&glm_action=index";
         $viewPath = GLM_MEMBERS_EVENTS_PLUGIN_PATH . '/views';
         $smarty->template->setTemplateDir($viewPath);
@@ -459,7 +459,12 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
         $smarty->templateAssign('from_email', $fromEmail);
         $smarty->templateAssign('emailNotification', $emailNotification);
         $smarty->templateAssign('pendingEvents', $eventsList);
+        $smarty->templateAssign('name', $name);
         $smarty->templateAssign('startDate', $starting);
+        $smarty->templateAssign('endDate', $ending);
+        $smarty->templateAssign('startTime', $smilitaryTime);
+        $smarty->templateAssign('endTime', $emilitaryTime);
+        
         
         $eventsList = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL ."?page=glm-members-admin-menu-events-index&glm_action=index";
         $smarty->templateAssign('items', $events);
index c455c2e..768d2a2 100644 (file)
@@ -3,17 +3,33 @@
     <head>
         <meta http-equiv="content-type" content="text/html;charset=utf-8">
     </head>
-    <body style="background: rgb(5, 104, 179); padding-bottom: 10px;">
-        <h1 style="color: rgb(245, 130, 42); margin-left: 15px;" id="title"> Event Submission Notification</h1>
-        <div id="emailMessage">
-            <p style="color: white; margin-left: 20px;"> Event Start Date: {$startDate} </p>
-            {if $emailNotification}
-                <p style="margin: 20px 20px; color: white;">{$emailNotification}</p>
+    <body>
+      <h1 id="title"> Event Submission Notification</h1>
+       <table cellspacing="0" cellpadding="0" width="500" style="background: lightgrey;border:1px solid #ccc;border-collapse:collapse;">
+           <tr>
+               <td style="font-weight:bold;width:200px;padding:5px;border:1px solid #ccc;">Event Name: {$name}</td>
+           </tr>
+           <tr>
+               <td style="font-weight:bold;width:200px;padding:5px;border:1px solid #ccc;">Event Start Date: {$starting} </td>
+                {if $ending}
+                   <td style="font-weight:bold;width:200px;padding:5px;border:1px solid #ccc;" >Event End Date: {$ending}</td>
+                {/if}
+           </tr>
+           <tr>
+                {if $startTime}
+                   <td style="font-weight:bold;width:200px;padding:5px;border:1px solid #ccc;">Event Start Time: {$tartTime}</td>
+                {/if}
+                {if $endTime}
+                   <td style="font-weight:bold;width:200px;padding:5px;border:1px solid #ccc;">Event End Time: {$endTime}</td>
+                {/if}
+           </tr>
+        </table>
+           {if $emailNotification}
+                {$emailNotification}
             {/if}
-        </div>
         <div id="emailFooter">
-            <p style="margin: 0px 5px 0px 20px; color: white;">A new Event has been added to your Website from your &quot;Add Your Event&quot; page.</p>
-            <p style="margin: 0px 5px 0px 20px; color: white;">To approve it, please go to the <a style="color: rgb(245, 130, 42);" href="{$pendingEvents}"> events </a> page in your admin.</p>
+            <p style="margin-bottom: 0px;">A new Event has been added to your Website from your &quot;Add Your Event&quot; page.</p>
+            <p style="margin-top: 0px;">To approve it, please go to the <a style="color: rgb(245, 130, 42);" href="{$pendingEvents}"> events </a> page in your admin.</p>
         </div>
     </body>
 </html>
\ No newline at end of file