}); </script> <?php echo count($deals) < 1 ? "<table width='95%'><tr><td style='border-radius:5px;background-color: #F2DEDE;border-color: #EED3D7;color: #0080C0;padding: 25px;width: 555px;font-weight: bold;font-size: 13px;' colspan='5'>Sorry, We can't reach your favorite Merchant today because we lost our car keys. Rest assured, as soon as we find those keys we will get those hard to find deals back to you :).</td></tr></table>" : ""; foreach ($deals as $deal) { $deal->is_coupon = 0; $deal->deal_type_id = strstr($deal->display_date, date(date("Y-m-d 00:00:00"))) ? $deal->deal_type_id : 0; $business_class = $deal->deal_type_id == 1 ? 'business1' : 'business2'; if ($deal->coupon_exist) { $cnt_created_coupon = isset($deal_coupons[$deal->id]) ? count($deal_coupons[$deal->id]) : 0; $deal->is_coupon = $cnt_created_coupon < $deal->no_of_coupons ? 1 : 0; } if (empty($deal->image)) { $deal->image = !empty($deal->business_logo) ? $deal->business_logo : $deal_default_image; } $address_link = google_map_link(array('city' => $deal->business_city, 'address1' => $deal->business_address_1, 'address2' => $deal->business_address_2, 'state' => $deal->business_state)); ?> <div> <div id="container"> <div id="<?php echo $business_class; ?> "><?php echo $deal->business_name; ?> </div> <div id="banner"> <?php if ($deal->is_coupon) { ?> <a href="javascript:void(0);" id="get_coupon" onclick="deal_coupon('<?php
function template($deal_info, $status) { if ($deal_info->deal_type_id == 1) { $show_featured_header = 1; $show_general_header = 0; $image_container_width = '33%'; $description_container_width = '64.5%'; $description_container_heignt = '220px'; } else { $show_featured_header = 0; $show_general_header = 1; $image_container_width = '27%'; $description_container_width = '70%'; $description_container_heignt = '180px'; } $gmap_link = google_map_link(array('city' => $deal_info->business_city, 'address1' => $deal_info->business_address_1, 'address2' => $deal_info->business_address_2, 'state' => $deal_info->business_state)); $ribben_img = 'deal_ribben.png'; $first_bottom_bar = 0; $second_bottom_bar = 0; $live_status = 0; $cancel_status = 0; $payment_method = 0; $term_condition = !empty($deal_info->terms_and_conditions) ? 1 : 0; $address_link = !empty($gmap_link) ? 1 : 0; $deal_note = 0; $btn_create_coupon = 0; $btn_coupon_m = 0; $btn_coupon_a = 0; $show_price_bar = $deal_info->list_price || $deal_info->actual_price ? 1 : 0; $social_buttons = 0; $btn_buy_now_a = 0; $btn_approve = 0; $btn_buy_now = 0; $btn_edit_m = 0; $btn_edit_a = 0; $btn_edit_draft_a = 0; $btn_email_a = 0; $btn_cancel_a = 0; $btn_cancel_m = 0; $btn_clone_a = 0; $btn_clone_m = 0; $btn_delete_draft_m = 0; $btn_delete_draft_a = 0; $btn_delete_pending_a = 0; $btn_delete_approved_a = 0; $btn_delete_past_a = 0; $progress_bar = 0; $deal_id_date_bar = 0; switch ($status) { case 'home': $first_bottom_bar = 1; $btn_create_coupon = $deal_info->is_coupon; $social_buttons = 1; break; case 'past_u': $first_bottom_bar = 1; $social_buttons = 1; break; case 'preview': $first_bottom_bar = 1; $social_buttons = 1; $show_price_bar = 1; $term_condition = 1; $btn_create_coupon = $deal_info->is_coupon; break; case 'share_deal': $first_bottom_bar = 1; $ribben_img = 'deal_ribben_mail.png'; break; case 'draft_m': $first_bottom_bar = 1; $second_bottom_bar = 1; $btn_buy_now = $deal_info->payment_status ? 0 : 1; $btn_edit_m = 1; $btn_delete_draft_m = $btn_buy_now; $progress_bar = 1; $btn_clone_m = 1; $clone_page = 'draft'; $progress_img = $deal_info->payment_status ? 'status_step3.png' : 'status_step1.png'; $date_html = date_html($deal_info->dealDates); break; case 'upcoming_m': $first_bottom_bar = 1; $cancel_status = $deal_info->blocked; $live_status = $deal_info->live_status; $second_bottom_bar = 1; $btn_cancel_m = 1; $btn_clone_m = 1; $clone_page = 'approved'; $deal_id_date_bar = 1; $date_html = date_html($deal_info->dealDates); break; case 'published_m': $first_bottom_bar = 1; $second_bottom_bar = 1; $live_status = $deal_info->live_status; $cancel_status = $deal_info->blocked; $btn_coupon_m = $deal_info->coupon_exist && $live_status ? 1 : 0; $btn_clone_m = 1; $clone_page = 'approved'; $deal_id_date_bar = 1; $date_html = date_html($deal_info->dealDates); break; case 'draft_a': $first_bottom_bar = 1; $second_bottom_bar = 1; $progress_bar = 1; $progress_img = $deal_info->payment_status ? 'status_step3.png' : 'status_step1.png'; $date_html = date_html($deal_info->dealDates); $deal_note = 1; $btn_clone_a = 1; $clone_page = 'draft'; $deal_note_edit = 1; $btn_buy_now_a = 1; $btn_edit_draft_a = 1; $btn_delete_draft_a = 1; $btn_email_a = 1; $app_past_redirect = 'index'; break; case 'pending_a': $first_bottom_bar = 1; $second_bottom_bar = 1; $payment_method = $deal_info->payment_type == 3 ? 1 : 0; $progress_bar = 1; $progress_img = $deal_info->payment_status ? 'status_step3.png' : 'status_step1.png'; $date_html = date_html($deal_info->dealDates); $btn_clone_a = 1; $clone_page = 'draft'; $deal_note_edit = 1; $deal_note = 1; $btn_edit_draft_a = 1; $btn_delete_pending_a = 1; $btn_email_a = 1; $btn_approve = 1; $app_past_redirect = 'approval_pending_deals'; break; case 'approved_a': $first_bottom_bar = 1; $second_bottom_bar = 1; $live_status = $deal_info->live_status; $deal_note = 1; $deal_note_edit = 1; $cancel_status = $deal_info->blocked; $btn_coupon_a = $deal_info->coupon_exist && $live_status ? 1 : 0; $btn_cancel_a = !$cancel_status; $deal_id_date_bar = 1; $date_html = date_html($deal_info->dealDates); $btn_edit_a = 1; $btn_clone_a = 1; $clone_page = 'approved'; $app_past_redirect = 'approved_deals'; $btn_delete_approved_a = strstr($deal_info->display_date, date(date("Y-m-d 00:00:00"))) ? 0 : 1; break; case 'past_a': $deal_note = 1; $deal_note_edit = 0; $first_bottom_bar = 1; $second_bottom_bar = 1; $live_status = $deal_info->live_status; $btn_coupon_a = $deal_info->coupon_exist && $live_status ? 1 : 0; $cancel_status = $deal_info->blocked; $btn_edit_a = $btn_coupon_a; $btn_clone_a = 1; $clone_page = 'approved'; $btn_cancel_a = $btn_edit_a && !$cancel_status ? 1 : 0; $deal_id_date_bar = 1; $date_html = date_html($deal_info->dealDates); $app_past_redirect = 'past_deals'; break; } $html = ""; if ($show_featured_header) { $html .= "<div style=\"width:100%; height:auto; padding:0 0% 0 0.12%;float:left;\">\n"; $html .= "<div style=\"width:100%; height:69px; float:left;z-index:800; \">\n"; $html .= "<img src=\"" . base_url('assets/img/ftftf.jpg') . "\" width=\"16\" height=\"69\" align=\"left\" style=\"background-color:#80b230;\" />\n"; $html .= "<div style=\"height:53px; width:96.60%; float:left; background: rgb(128,178,48); /* Old browsers */\nbackground: -moz-linear-gradient(left, rgba(128,178,48,1) 0%, rgba(93,127,9,1) 100%); /* FF3.6+ */\nbackground: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(128,178,48,1)), color-stop(100%,rgba(93,127,9,1))); /* Chrome,Safari4+ */\nbackground: -webkit-linear-gradient(left, rgba(128,178,48,1) 0%,rgba(93,127,9,1) 100%); /* Chrome10+,Safari5.1+ */\nbackground: -o-linear-gradient(left, rgba(128,178,48,1) 0%,rgba(93,127,9,1) 100%); /* Opera 11.10+ */\nbackground: -ms-linear-gradient(left, rgba(128,178,48,1) 0%,rgba(93,127,9,1) 100%); /* IE10+ */\nbackground: linear-gradient(to right, rgba(128,178,48,1) 0%,rgba(93,127,9,1) 100%); /* W3C */\nfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80b230', endColorstr='#5d7f09',GradientType=1 ); /* IE6-9 */\">\n"; $html .= "<div style=\"width:80%; color:#fff; font-size:24px; float:left; margin-top:10px; padding-left:1%;\">Featured Deal <span style=\"font-size:20px;\">by</span> " . $deal_info->business_name . "</div>\n"; $html .= "</div>\n"; $html .= "<img src=\"" . base_url('assets/img/ftft2.jpg') . "\" width=\"16\" height=\"69\" align=\"left\" />\n"; $html .= "</div>\n"; $html .= "<div style=\"width:94.50%; padding:10px; border-radius:5px; background:#f2f2f2; float:left; position:relative; top:-16px; left:16px; z-index:500;\">\n"; } if ($show_general_header) { $html .= "<div style=\"width:100%; height:auto; padding:0 2% 0 0;float:left;\">\n"; if ($status != 'share_deal') { $len_business = strlen($deal_info->business_name); if ($len_business < 29 && $len_business >= 25) { $business_fontsize = '13px'; } elseif ($len_business < 25 && $len_business >= 22) { $business_fontsize = '14px'; } elseif ($len_business < 22 && $len_business >= 18) { $business_fontsize = '15px'; } elseif ($len_business < 15 && $len_business >= 12) { $business_fontsize = '16px'; } elseif ($len_business < 12) { $business_fontsize = '18px'; } else { $business_fontsize = '12px'; } } else { $business_fontsize = '12px'; } $html .= "<div style=\"width:27.5%; float:left; height:30px; position:relative; left:29px; top:20px; z-index:1000; color:#FFF; font-family:Verdana, Geneva, sans-serif; font-size:" . $business_fontsize . "; text-align:center; padding-top:5px; margin:15px 0 0 0; background:url(" . base_url('assets/img/' . $ribben_img) . ") no-repeat;\" >" . $deal_info->business_name . "</div>\n"; $html .= "<div style=\"width:92.50%; padding:10px; border-radius:5px; background:#f2f2f2; float:left; position:relative; left:29px; z-index:500;\">\n"; } $html .= "<div style=\"width:100%; float:left; background:#FFF; padding-bottom:10px;border:#CCC 1px solid; border-radius:10px;\">\n"; $html .= "<div style=\"width:98%; padding:10px; height:" . $description_container_heignt . ";\">\n"; $html .= "<div style=\"width: " . $image_container_width . "; float: left; border-right:2px solid #999; padding-right: 10px; \">\n"; $html .= "<img src=\"" . base_url() . '/uploads/images/thumbnails/' . $deal_info->image . "\" id=\"fake_img\" width=\"100%\" height=\"" . $description_container_heignt . "\" align=\"left\" />\n"; $html .= "</div>\n"; $html .= "<div style=\"width:" . $description_container_width . "; margin-left:10px; padding-top:1%; float:left; margin-top: -15px;\">\n"; $html .= "<div style=\"height:" . $description_container_heignt . ";\">\n"; $html .= "<div style=\"width:100%;float: left;font-family: verdana;font-size: 18px;border-bottom: 1px solid #c8c8c8;padding-bottom: 6px;font-weight: bold;\" id=\"temp_deal_title\">\n"; if (!empty($deal_info->business_url)) { $html .= "<a href=\"" . build_url($deal_info->business_url) . "\" target=\"_blank\" style=\"color:#000;text-decoration:none;\" onmouseover=\"this.style.textDecoration = 'underline'\" onmouseout=\"this.style.textDecoration = 'none'\">" . $deal_info->title . "</a>\n"; } else { $html .= "<span style=\"color:#000;\">" . $deal_info->title . "</span>\n"; } if ($cancel_status) { $html .= "<span style=\"float:right; color:red;\">Cancelled</span>\n"; } elseif ($live_status) { $html .= "<span style=\"float:right; color:green;\">Live</span>\n"; } if ($payment_method) { $html .= "<span style=\"float:right; color:red;\">Check/Cash</span>\n"; } $html .= "</div>\n"; $html .= "<div style=\"width: 100%; float: left; font-family: verdana;font-size: 13px;color: #6f6f6f;line-height: 23px;margin-top: 10px;\" id=\"temp_deal_description\">" . $deal_info->description . "</div>\n"; $html .= "</div>\n"; $html .= "<div style=\"width:100%; float:right; color:#000; text-align:right; font-size:12px;\">\n"; if ($address_link) { $html .= "<a href=\"" . $gmap_link . "\" id=\"address_link_template\" target=\"_blank\" style=\"text-decoration: none; color:#909090; font-size:normal;\">View on map</a>\n"; } if ($address_link && $term_condition) { $html .= "<span id=\"link_term_seperator\"> | </span>\n"; } if ($term_condition) { $html .= "<a href=\"javascript:void(0);\" id=\"terms_conditions_template\" data-animation=\"fade\" style=\"text-decoration: none; color:#909090; font-size:normal;\" onclick=\"deal_terms('" . $deal_info->id . "');\">Terms and Conditions</a>\n"; } $html .= "</div>\n"; $html .= "</div>\n"; $html .= "</div>\n"; $html .= "<div style=\"width:100%; float: left;\">\n"; //start first bottom bar if ($first_bottom_bar) { $html .= "<div style=\"width:100%; height:8px; background:#f4f4f4; border-top:1px solid #999; float:left; margin:10px 0 0px 0; \"></div>\n"; $html .= "<div style=\"height: 30px; float: left; margin: 10px; width: 98%;\">\n"; //start price bar $html .= "<div style=\"width:50%; float:left;\">\n"; if ($show_price_bar) { $html .= "<div class=\"price_bar\" id=\"price_bar\" style=\"width:100%; float:left;\">\n"; $html .= "<div style=\"width:24%; float:left; border-right: 1px solid #ccc; text-align:center; height:40px;\"><span style=\"width:100%; float:left;\">Regular Price</span> <b style=\"text-decoration:line-through; width:100%\" id=\"temp_deal_actual_price\"> \$" . $deal_info->actual_price . "</b></div>\n"; $html .= "<div style=\"width:24%; float:left; border-right: 1px solid #ccc; text-align:center; height:40px;\"><span style=\"width:100%; float:left;\">Discount</span> <b style=\"color:#F00; width:100%\" id=\"temp_deal_discount_pct\"> " . $deal_info->discount_pct . "%</b></div>\n"; $html .= "<div style=\"width:24%; float:left; border-right: 1px solid #ccc; text-align:center; height:40px;\"><span style=\"width:100%; float:left;\">You Pay</span><b style=\"color:#F00; width:100%\" id=\"temp_deal_list_price\"> \$" . $deal_info->list_price . "</b></div>\n"; $html .= "<div style=\"width:24%; float:left; border-right: 1px solid #ccc; text-align:center; height:40px;\"><span style=\"width:100%; float:left;\">You Save</span><b style=\"color:#F00; width:100%\" id=\"temp_deal_save\"> \$" . ($deal_info->actual_price - $deal_info->list_price) . "</b></div>\n"; $html .= "</div>\n"; } $html .= "</div>\n"; //End price bar //start social buttons and coupons $html .= "<div style=\"width:50%; float:right; text-align:right;\">\n"; //social buttons if ($social_buttons) { $html .= "<div style=\"width:9.5%; float:right;\" ><a href=\"javascript:void(0);\" style=\"text-decoration: none; color:#909090; font-size:normal;\" onclick=\"share_deal_mail('" . $deal_info->id . "');\"><img src=\"" . base_url('assets/img/mail.png') . "\" border=\"0\" align=\"right\" /></a></div>\n"; $html .= "<div style=\"width:5.55%; float:right;\" ><a class=\"facebookpopup\" href=\"http://www.facebook.com/sharer/sharer.php?s=100&p[url]=" . base_url() . "&p[title]=Check out this great deal from " . $deal_info->business_name . ": " . $deal_info->title . "\"><img src=\"" . base_url('assets/img/fb.png') . "\" align=\"right\" border=\"0\" /></a></div>\n"; $html .= "<div style=\"width:7%; float:right;\" ><div id=\"custom-tweet-button\"><a class=\"twittpopup\" href=\"http://twitter.com/share?url=" . base_url() . "&text=Check out this great deal from " . $deal_info->business_name . ": " . $deal_info->title . " on \" data-count=\"none\"></a></div></div>\n"; } //coupon button if ($btn_create_coupon) { if ($btn_create_coupon == 2) { $html .= "<div style=\"float: right; margin-right:10px;\"><input type=\"button\" value=\"Coupon Expired\" class=\"blue_button_disabled\" disabled/></div>\n"; } else { $html .= "<div style=\"float: right; margin-right:10px;\"><a href=\"javascript:void(0);\" style=\"text-decoration: none;\" id=\"get_coupon\" onclick=\"deal_coupon('" . $deal_info->id . "','" . $deal_info->title . "');\"><input type=\"button\" value=\"Coupon\" class=\"blue_button_coupon\"/></a></div>\n"; } } if ($btn_coupon_m) { $html .= "<div style=\"width:32%; float:right;\"><a href=\"javascript:void(0);\" class=\"blue_button deal_btn\" id=\"dealbtn_" . $deal_info->id . "\">Coupons</a></div>\n"; } if ($btn_coupon_a) { $html .= "<div style=\"width:32%; float:right;\"><a href=\"javascript:void(0);\" class=\"btn btn-primary deal_btn\" id=\"dealbtn_" . $deal_info->id . "\">Coupons</a></div>\n"; } $html .= "</div>\n"; //End social buttons and coupons $html .= "</div>\n"; } //End first bottom bar //Start second bottom bar if ($second_bottom_bar) { $html .= "<div style=\"width:100%; height:8px; background:#f4f4f4; border-top:1px solid #999; float:left; margin:10px 0 0px 0; \"></div>\n"; $html .= "<div style=\"min-height: 30px; float: left; margin: 10px; width: 98%;\">\n"; $html .= "<div style=\"width:60%; float:left;\">\n"; if ($progress_bar) { $html .= "<div style=\"width:66%; float:left;\"><img src=\"" . base_url('assets/img/' . $progress_img) . "\" /></div>\n"; $html .= "<div style=\"width:21%; float:left;\"><b>Deal Date(s):</b><br />" . $date_html . "</div>\n"; $html .= "<div style=\"width:13%; float:left;\"><b>Deal City:</b><br />" . $deal_info->deal_city . "</div>\n"; } if ($deal_id_date_bar) { $html .= "<div style=\"width:25%; float:left;\"><b>Deal id: </b> " . $deal_info->deal_id . "</div>\n"; $html .= "<div style=\"width:32%; float:left;\"><b>Deal City: </b> " . $deal_info->deal_city . "</div>\n"; $html .= "<div style=\"width:40%; float:left;\"><b>Display Date(s): </b><br />" . $date_html . "</div>\n"; } $html .= "</div>\n"; $html .= "<div style=\"width:40%; float:left; text-align:right;\">\n"; if ($btn_buy_now) { $html .= "<a href=\"javascript:void(0);\"><input class=\"blue_button\" type=\"button\" value=\"Buy Now\" name=\"buy_button\" onclick=\"buy_deal('" . $deal_info->id . "');\"/></a>\n"; } if ($btn_buy_now_a) { $html .= "<a href=\"javascript:void(0);\" class=\"btn btn-success\" onclick=\"buy_deal('" . $deal_info->id . "','" . $deal_info->merchant_id . "');\">Buy Now</a>\n"; } if ($btn_approve) { $html .= "<a href=\"javascript:void(0);\" class=\"btn btn-success\" onclick=\"approve_deal('" . $deal_info->id . "');\" >Approve</a>\n"; } if ($btn_clone_m) { $html .= "<a href=\"" . site_url('deals/form/' . $deal_info->id . '/clone/' . $clone_page) . "\"><input class=\"blue_button\" type=\"button\" value=\"Clone\" /></a>\n"; } if ($btn_clone_a) { $html .= "<a href=\"" . site_url('/admin/deals/form/' . $deal_info->id . '/index/clone/' . $clone_page) . "\" class=\"btn btn-success\" onclick=\"approve_deal('" . $deal_info->id . "');\" >Clone</a>\n"; } if ($btn_cancel_m) { $html .= "<a href=\"javascript:void();\"><input class=\"blue_button\" type=\"button\" value=\"Cancel\" onclick=\"request_cancel('" . $deal_info->id . "')\"/></a>\n"; } if ($btn_cancel_a) { $html .= "<a class=\"btn btn-danger\" href=\"" . site_url('/admin/deals/cancel_approved_deal/' . $deal_info->id . '/' . $app_past_redirect) . "\" onclick=\"return confirm('Are you sure you want to cancel this approved deal !');\"><i class=\"icon-remove icon-white\"></i> Cancel</a>\n"; } if ($btn_edit_m) { $html .= "<a href=\"" . site_url('deals/form/' . $deal_info->id) . "\"><input class=\"blue_button\" type=\"button\" value=\"Edit\" /></a>\n"; } if ($btn_edit_draft_a) { $html .= "<a class=\"btn\" href=\"" . site_url('/admin/deals/form/' . $deal_info->id . '/' . $app_past_redirect) . "\"><i class=\"icon-pencil\"></i> Edit</a>\n"; } if ($btn_edit_a) { $html .= "<a class=\"btn\" href=\"" . site_url('/admin/deals/approved_deal_form/' . $deal_info->id . '/' . $app_past_redirect) . "\"><i class=\"icon-pencil\"></i> Edit</a>\n"; } if ($btn_email_a) { $html .= "<a class=\"btn\" href=\"" . site_url('/admin/deals/message/' . $deal_info->id) . "\"><i class=\"icon-envelope\"></i> Message</a>\n"; } if ($deal_note) { $html .= "<a class=\"btn\" href=\"javascript:void(0);\" onclick=\"deal_note('" . $deal_info->id . "','" . $status . "')\"><i class=\"icon-file\"></i> Note</a>\n"; } if ($btn_delete_draft_m) { $html .= "<a href=\"" . site_url('deals/delete_draft_deal/' . $deal_info->id) . "\"><input class=\"blue_button\" type=\"button\" value=\"Delete\" onclick=\"return confirm('Are you sure you want to delete this deal !');\"/></a>\n"; } if ($btn_delete_draft_a) { $html .= "<a class=\"btn btn-danger\" href=\"" . site_url('/admin/deals/delete_draft_deal/' . $deal_info->id) . "\" onclick=\"return confirm('Are you sure you want to delete this deal !');\"><i class=\"icon-remove icon-white\"></i> Delete</a>\n"; } if ($btn_delete_pending_a) { $html .= "<a class=\"btn btn-danger\" href=\"" . site_url('/admin/deals/reject_pending_deal/' . $deal_info->id) . "\" onclick=\"return confirm('Are you sure you want to reject this deal !');\"><i class=\"icon-remove icon-white\"></i> Reject</a>\n"; } if ($btn_delete_approved_a) { $html .= "<a class=\"btn btn-danger\" href=\"" . site_url('/admin/deals/delete_approved_deal/' . $deal_info->id) . "\" onclick=\"return confirm('Are you sure you want to delete this deal !');\"><i class=\"icon-remove icon-white\"></i> Delete</a>\n"; } if ($btn_delete_past_a) { $html .= "<a class=\"btn btn-danger\" href=\"" . site_url('/admin/deals/delete_past_deal/' . $deal_info->id) . "\" onclick=\"return confirm('Are you sure you want to delete this deal !');\"><i class=\"icon-remove icon-white\"></i> Delete</a>\n"; } $html .= "</div>\n"; $html .= "</div>\n"; } //End second bottom bar $html .= "</div>\n"; $html .= "</div>\n"; $html .= "</div>\n"; if ($show_featured_header) { $html .= "<img src=\"" . base_url('assets/img/btm_shadow.png') . "\" width=\"928\" height=\"8\" style=\"position:relative; top:-20px; left:28px;\" />\n"; } $html .= "<input type=\"hidden\" id=\"terms_" . $deal_info->id . "\" value=\"" . $deal_info->terms_and_conditions . "\" />\n"; $html .= "<input type=\"hidden\" id=\"title_" . $deal_info->id . "\" value=\"" . $deal_info->title . "\" />\n"; $html .= "</div>\n"; return $html; }