����JFIF�����%%��� }!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������� w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|��O�������h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,��������ο�O�P��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������k�w���~���v��������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j�?�5o�%��?��� g����U@�����&O3�����a�;�^=�wH���D��/��*� �fX�I���,������k?g_���?�5o�%��?��� g����U@�F�����������*������?�o�}��Τ~g��ʀ�#V��Y������~ο�T�j��K/� ������������z��������#;�~���A�;��� w�F�����������*���տ��_�@�o��5����EU������������u�誠��W��[�����������O��?jW���@��տ���@�o��5����EM������������v�訠�#V��Y�������������V��Zv��~����vw�~���c�Q@���,��~���kgo���?�5o�%��/��� o����Q@��o�%�>�ߤ���߳����S������?��o�%�~�ߠ�d�߳����S����g�P��j��K?� _������������[� g�D����[�;�TP7���������'Ѿ���=��;/�P��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���a������۔���B{���ea�`T�+ �n%Ц �����j��K?� _������������[� g�D����[�;�TP���,��~���kgo����?���%�/�~�����#����x��c�~�q�v�t`ȫ��_'h���������'�]�;{s� Pp=N= 5���%�����ڜs�����=���J��A@�����Kp�b��}��X�����4g v+:�Բ�+60�ʩ,� @�����������I �uO�����ToUv��bgUl�cP�T?�#V��Y������������j��K?� _����������!��X��]���������TK�|4��`� ��#��P\y��aa >NgL��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���o�F�����$��ہ�� ��vݞr6��S�q''*02���[� g�D����[�;�TP���,��~���kgo���?�5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE������������v�訠��������~1�o���}G�L�������5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE5����%�˷���r�v����y�\~���)(?0���=[� i����>��gc��N=����5o�%��/��� o����Q@�F�����������*(��W��Z�l����m#���X�wn_�j`0C6윅����5o�%��/��� o����Q@��տ��y9���gbO�G�5@�n�>���#V��Y������~ο�T��V��Y����9�gc��s�T.�?Z_��[� e�D����Y�:��UP���,������k?g_����_�=_� n�~~�rI������w�,"~ԓ�!72���)( u��#V��Y������~ο�T�j��K/� ��������������K
�����Kr_���}�De>~��Z=��pjX�n[p(�"� �a,Ub�/�×�<����;��<�����K>��o���[�:����V���,��$��ϧ�*�����5O����տ��_�@�o��5����EU5��o�%����?�ꜜm�_�;>Gbs�S�����@��տ��_�@�o��5����EU ��տ��}�~�����v?�������-��o�l��~�ȥ�v����r��B1���@��տ���A�?����ggP��c�S�`@%�*����տ��_�@�o��5����EU������������u�誠7���� O���!c�|0��ёv��4�+�X�Vx�RX3��8����K>��o���[�:���u#�x��#V��Y������~ο�T�j��K/� ������������[� e�D����Y�:��UP���,������k?g_���O��[� g�D����[�:��T��=_� k����~��k����c�;����.8����c��z��Ͽ�/��zc�o����F?Z_��[� e�D����Y�:��UP���,������k?g_���C���,�v����v�o���H������(�z���w�/�����v ��T.G��Ϡ���տ��_�@�o��5����EU������������u�誠��W��[��'����%��o���:�Cڕ�R̀���j���������?�o���[�;������g0q�?��o�%�>o�_��>�gf����~4�������������u�誠�z���7�/��o���������_��[� e�D����Y�:��UP���,������k?g_���C���,�|�����o��;�Ԟ��9�l�z��ؠ3|��O�X�~���;~�q����Z�F�����������*���տ��_�@�o��5����EU!��տ��}�~����-��G��I�T�������������u�誠�#V��Y������~ο�T�j��K/� ����������#�=_� n|���KbB�gtdM��"�ڒA#n�63�6�m�P�����,���/���gS�u����#�9��5o�%��?��� g����U@��o�%�o�_�����u��'�������?��o��� ���3��?go���|m�ڇ���-S�O��x��>���^�����7����x�]_�>�qke>���m��4��7P�Yހ��
0byt3m1n1
0byt3m1n1
Path:
/
hermes
/
bosweb
/
web
/
sb_web
/
web
/
sb_web
/
b2651
/
thejeanswarehouse.com
/
classes
/
[
Home
]
File: class.common.php
<?php require_once("class.seo.php"); require_once('class.blog.php'); require_once("class.customer.php"); require_once("class.product.php"); class CommonClass extends Seo { var $commoncontent; var $urisegments = array(); var $sort_parameter; var $page_parameter; var $limit_parameter; var $target_url; function __construct() { $this->urisegments[1]=$this->getUriSegment(1); $this->urisegments[2]=$this->getUriSegment(2); $this->urisegments[3]=$this->getUriSegment(3); $this->urisegments[4]=$this->getUriSegment(4); } //Get Categories function GetCategory($conn,$page_url,$parent, $level) { $i=0; $query = "SELECT id_category,page_url,header_title,(SELECT COUNT(id_category) FROM ".$conn->table_prefix."category C1 WHERE C1.parent_id=C.id_category)subcategory from ".$conn->table_prefix."category C WHERE parent_id=$parent AND include_in_menu=1 ORDER BY sort_order"; $result = $conn->dbc->query($query); if($result->num_rows>0){ if($parent != 0) //echo '<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">'; echo '<ul class="dropdown-menu">'; while ($row = $result->fetch_assoc()) { $pageurl = SITE_URL.'category/'.$row['page_url'].".html"; if($row['subcategory'] > 0){ if($row['page_url'] == $page_url){ echo '<li class="dropdown-submenu"><a href="'.$pageurl.'" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">'.$row['header_title'].'</a>'; $this->GetCategory($conn,$page_url,$row['id_category'], $level + 1); }else{ echo ' <li class="nav-item"><a href="'.$pageurl.'" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">'.$row['header_title'].'</a>'; $this->GetCategory($conn,$page_url,$row['id_category'], $level + 1); } }else{ if($row['page_url'] == $page_url){ echo '<li class="nav-item"><a href="'.$pageurl.'" class="nav-link">'.$row['header_title'].'</a>'; $this->GetCategory($conn,$page_url,$row['id_category'], $level + 1); }else{ echo ' <li class="nav-item"><a href="'.$pageurl.'" class="nav-link">'.$row['header_title'].'</a>'; $this->GetCategory($conn,$page_url,$row['id_category'], $level + 1); } } echo '</li>'; } if($parent != 0) echo "</ul>"; } } function GetCategoryMenu($page_url) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $this->GetCategory($objMysql,$page_url,0,1); } //Get Categories function GetLeftCategory($conn,$page_url,$parent, $level) { $i=0; $query = "SELECT id_category,page_url,header_title,(SELECT COUNT(id_category) FROM ".$conn->table_prefix."category C1 WHERE C1.parent_id=C.id_category)subcategory from ".$conn->table_prefix."category C WHERE parent_id=$parent ORDER BY sort_order"; $result = $conn->dbc->query($query); if($result->num_rows>0){ if($parent != 0) echo '<ul>'; while ($row = $result->fetch_assoc()) { $pageurl = SITE_URL.'category/'.$row['page_url'].".html"; if($row['subcategory'] > 0){ echo '<li class="sub-menu">'; }else{ echo '<li>'; } if($row['page_url'] == $page_url){ echo '<a href="'.$pageurl.'" class="active">'.$row['header_title'].'</a>'; $this->GetCategory($conn,$page_url,$row['id_category'], $level + 1); }else{ echo '<a href="'.$pageurl.'">'.$row['header_title'].'</a>'; $this->GetCategory($conn,$page_url,$row['id_category'], $level + 1); } echo '</li>'; } if($parent != 0) echo "</ul>"; } } function GetLeftCategoryMenu($page_url) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $this->GetLeftCategory($objMysql,$page_url,0,1); } //Ends Here function GetDeliveryScheduleDetails() { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $list = ""; $query="SELECT id_delivery_details,location_name,days,delivery_time FROM ".$objMysql->table_prefix."delivery_details ORDER BY sort_order"; $stmt = $objMysql->dbc->stmt_init(); $result = array(); if($stmt->prepare($query)){ $stmt->execute(); $stmt->bind_result($row["id_delivery_details"],$row["location_name"],$row["days"],$row["delivery_time"]); while($stmt->fetch()){ $result[] = unserialize(serialize($row)); } } return $result; } function GetParentCategory() { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $list = ""; $query="SELECT id,category_name,page_url FROM ".$objMysql->table_prefix."category WHERE parent_id=0 AND category_status=1 ORDER BY sort_order"; $stmt = $objMysql->dbc->stmt_init(); $result = array(); if($stmt->prepare($query)){ $stmt->execute(); $stmt->bind_result($row["id"],$row["category_name"],$row["page_url"]); while($stmt->fetch()){ $result[] = unserialize(serialize($row)); } } return $result; } function GetParentCategoryMenu() { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $list = ""; $query="SELECT id,category_name,page_url FROM ".$objMysql->table_prefix."category WHERE parent_id=0"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $stmt->execute(); $stmt->bind_result($id,$category_name,$page_url); while($row=$stmt->fetch()){ $category_url=SITE_URL."category/".$page_url.".html"; $list.='<li><a href='.$category_url.'>'.$category_name.'</a></li>'; } } return $list; } function GetCountry() { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query = "SELECT id,country_abbreviation,country_name FROM ".$objMysql->table_prefix."country WHERE is_sale_to_this_country=1 ORDER BY country_name"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $result=array(); $stmt->execute(); $stmt->store_result(); if($stmt->num_rows){ $stmt->bind_result($country["id"],$country["country_abbreviation"],$country["country_name"]); while($stmt->fetch()){ $result[] = unserialize(serialize($country)); } } $stmt->close(); $objMysql->close(); return $result; }else{ echo "Error in database transaction."; return false; } } function GetCountryNameById($id) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT id,country_abbreviation,country_name FROM ".$objMysql->table_prefix."country WHERE id=?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $country_name=''; $stmt->bind_param('i',$id); $stmt->execute(); $stmt->bind_result($id,$country_abbreviation,$country_name); if($stmt->fetch()){ $stmt->close(); $objMysql->close(); return $country_name; } }else{ echo "Error in database transaction."; return false; } } function GetStateNameById($id) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT id,state_abbreviation,state_name FROM ".$objMysql->table_prefix."state WHERE id=?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $state_name=''; $stmt->bind_param('i',$id); $stmt->execute(); $stmt->bind_result($id,$state_abbreviation,$state_name); if($stmt->fetch()){ $stmt->close(); $objMysql->close(); return $state_name; } }else{ echo "Error in database transaction."; return false; } } function GetStateDetailsById($id) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT id,state_abbreviation,state_name FROM ".$objMysql->table_prefix."state WHERE id=?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $stmt->bind_param('i',$id); $stmt->execute(); $stmt->bind_result($state["id"],$state["state_abbreviation"],$state["state_name"]); $stmt->close(); $objMysql->close(); return $state; }else{ echo "Error in database transaction."; return false; } } function GetStateDetailsByAbbreviation($state) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT id,state_abbreviation,state_name FROM ".$objMysql->table_prefix."state WHERE state_abbreviation=?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $stmt->bind_param('s',$state); $stmt->execute(); $stmt->bind_result($state["id"],$state["state_abbreviation"],$state["state_name"]); $stmt->close(); $objMysql->close(); return $state; }else{ echo "Error in database transaction."; return false; } } function GetStateNameByAbbreviation($state) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT id,state_abbreviation,state_name FROM ".$objMysql->table_prefix."state WHERE state_abbreviation=?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $state_name=''; $stmt->bind_param('s',$state); $stmt->execute(); $stmt->bind_result($state_name); if($stmt->fetch()){ $stmt->close(); $objMysql->close(); return $state_name; } }else{ echo "Error in database transaction."; return false; } } function GetStateByCountryId($country_id) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query = "SELECT id,state_abbreviation,state_name FROM ".$objMysql->table_prefix."state WHERE country_id=? AND status=1 ORDER BY state_name"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $result=array(); $stmt->bind_param('i',$country_id); $stmt->execute(); $stmt->store_result(); if($stmt->num_rows){ $stmt->bind_result($state["id"],$state["state_abbreviation"],$state["state_name"]); while($stmt->fetch()){ $result[] = unserialize(serialize($state)); } } $stmt->close(); $objMysql->close(); return $result; }else{ echo "Error in database transaction."; return false; } } function GetStaffDetailsByArea($area_id) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT id_user,user_name,emailid,phone_number,user_image,address,area_id FROM ".$objMysql->table_prefix."admin WHERE area_id=? AND confirmcode='y'"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $stmt->bind_param('i',$area_id); $result=array(); $stmt->execute(); $stmt->store_result(); if($stmt->num_rows){ $stmt->bind_result($user["id_user"],$user["user_name"],$user["emailid"],$user["phone_number"],$user["user_image"],$user["address"],$user["area_id"]); while($stmt->fetch()){ $result[] = unserialize(serialize($user)); } } $stmt->close(); $objMysql->close(); return $result; }else{ echo "Error in database transaction."; return false; } } function GetPagesByParentUrl($page_url) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query = "SELECT id,page_name,page_url FROM ".$objMysql->table_prefix."pages WHERE parent_id IN(SELECT parent_id FROM ".$objMysql->table_prefix."pages WHERE page_url=?)"; $stmt = $objMysql->dbc->stmt_init(); $result=array(); if($stmt->prepare($query)){ $stmt->bind_param('s',$page_url); $stmt->execute(); $stmt->store_result(); if($stmt->num_rows){ $stmt->bind_result($row["id"],$row["page_name"],$row["page_url"]); while($stmt->fetch()){ $result[] = unserialize(serialize($row)); } } $stmt->close(); $objMysql->close(); return $result; }else{ echo "Error in database transaction."; return false; } } function GetSlideImage() { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $list = ""; $query = "SELECT id_slide_image,image_title,link_txt,link_url,image_description,slider_image FROM ".$objMysql->table_prefix."slider_images"; if($stmt=$objMysql->dbc->query($query)){ $result = array(); while($row =$stmt->fetch_assoc()){ $result[] = $row; } $stmt->close(); $objMysql->close(); return $result; }else{ echo "Error in database transaction."; return false; } } function GetSiteData($field_name) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query="SELECT ".$field_name." FROM ".$objMysql->table_prefix."sitedata"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $return_value=''; $stmt->execute(); $stmt->bind_result($field_name); if($stmt->fetch()){ $return_value=$field_name; $stmt->close(); $objMysql->close(); return $return_value; } }else{ echo "Error in database transaction."; return false; } } function GetUrl(){ if(isset($_SERVER['HTTPS'])){ $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; } else{ $protocol = 'http'; } if(isset($_SERVER["REDIRECT_URL"])) return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REDIRECT_URL']; else return SITE_URL; } function Sanitize($str,$remove_nl=true) { $str = $this->StripSlashes($str); if($remove_nl) { $injections = array('/(\n+)/i', '/(\r+)/i', '/(\t+)/i', '/(%0A+)/i', '/(%0D+)/i', '/(%08+)/i', '/(%09+)/i' ); $str = preg_replace($injections,'',$str); } return $str; } function StripSlashes($str) { if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return $str; } //Get Mysql Date Format function GetMysqlDateFormat($date) { $phpdate = strtotime( $date ); $mysqldate = date( 'Y-m-d H:i:s', $phpdate ); return $mysqldate; } function ShowDateFormat($date) { $mytime = strtotime($date); $newDate = date('d M Y', $mytime); return $newDate; } function GetDateOnly($date) { $newDate=''; if(!empty($date) && $date != '1970-01-01' && $date != '0000-00-00'){ $mytime = strtotime($date); $newDate = date('m/d/Y', $mytime); return $newDate; } } function RedirectToURL($url) { header("Location: $url"); exit; } function HandleDBError($err) { return $this->HandleError($err."\r\n mysqlerror:".mysql_error()); } function HandleError($err) { return $error_message = $err."\r\n"; } function IsLoggedIn() { if(isset($_SESSION["id_customer"])) return true; else return false; } function GetSelfScript() { return htmlentities($_SERVER['PHP_SELF']); } function SafeDisplay($value_name) { if(empty($_POST[$value_name])) { return''; } return htmlentities($_POST[$value_name]); } function GetTotalCartItems() { if(isset($_SESSION['product']['id'])) return $product_count_in_cart = count(array_unique($_SESSION['product']['id'])); else return 0; } function GetDeliveryTimingsByArea($area_id) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query = "SELECT id_delivery_time,area_id,hour_from,min_from,ampm_from,hour_to,min_to,ampm_to,sort_order FROM ".$objMysql->table_prefix."areawise_delivery_timings WHERE area_id=?"; if($stmt = $objMysql->dbc->prepare($query)){ $stmt->bind_param('i',$area_id); $stmt->execute(); $stmt->bind_result($row["id_delivery_time"],$row["area_id"],$row["hour_from"],$row["min_from"],$row["ampm_from"],$row["hour_to"],$row["min_to"],$row["ampm_to"],$row["sort_order"]); $stmt->store_result(); $html = ''; $html .= '<option value="">--Select delivery time--</option>'; if($stmt->num_rows > 0){ while($stmt->fetch()){ $delivery_times = 'From '.$row["hour_from"].':'.str_pad($row["min_from"], 2, '0', STR_PAD_LEFT).' '.$row["ampm_from"]; if(!empty($row["hour_to"])){ $delivery_times .= ' to '.$row["hour_to"].':'.str_pad($row["min_to"], 2, '0', STR_PAD_LEFT).' '.$row["ampm_to"]; } $html .= '<option value="'.$row["id_delivery_time"].'">'.$delivery_times.'</option>'; } } } return $html; } function GetErrorMessage($error_message) { if(empty($error_message)) { return ''; } $errormsg = '<div style="color:red;font-weight:bold;">'.$error_message.'</div>'; return $errormsg; } function GetSuccessMessage($error_message) { if(empty($error_message)) { return ''; } $errormsg = '<div style="color:green;font-weight:bold;">'.$error_message.'</div>'; return $errormsg; } function CleanObjects(){ if(isset($objProduct)) unset($objProduct); if(isset($objProductAttributes)) unset($objProductAttributes); } //Get Breadcrumbs function CreateOthersBreadcrumb($id,$tablename,$fieldname) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $name = ""; $query = "SELECT id,$fieldname,page_url FROM ".$objMysql->table_prefix.$tablename." WHERE id = ?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $result=array(); $stmt->bind_param('i',$id); $stmt->execute(); $stmt->store_result(); if($stmt->num_rows){ $stmt->bind_result($row["id"],$row[$fieldname],$row["page_url"]); if($stmt->fetch()){ $name = $row[$fieldname]; } } $stmt->close(); $objMysql->close(); } $breadcrumb = "<li><a href='".SITE_URL."'>Home</a></li> <li><strong>".$name."</strong></li>"; return $breadcrumb; } function CreateProductBreadCrumb($id,$tablename,$fieldname) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $name = ""; $query = "SELECT id_product,$fieldname,page_url FROM ".$objMysql->table_prefix.$tablename." WHERE id_product = ?"; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $result=array(); $stmt->bind_param('i',$id); $stmt->execute(); $stmt->store_result(); if($stmt->num_rows){ $stmt->bind_result($row["id_product"],$row[$fieldname],$row["page_url"]); if($stmt->fetch()){ $name = $row[$fieldname]; } } $stmt->close(); $objMysql->close(); } if(!empty($_REQUEST["cat"])){ $breadcrumb = "<a href='".SITE_URL."'>Home</a> >> ".$this->CreateCategoryBreadcrumb($_REQUEST["cat"],"category",0)."<span>".$name."</span>"; }else{ $breadcrumb = "<a href='".SITE_URL."'>Home</a> >> <span>".$name."</span>"; } return $breadcrumb; } function IsSubCategoryExists($page_url) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query = "SELECT count(C.id)totalcategory FROM ".$objMysql->table_prefix."category C WHERE C.parent_id=(SELECT id FROM ".$objMysql->table_prefix."category C1 WHERE C1.page_url='".$page_url."')"; if($stmt = $objMysql->dbc->query($query)) { if($row = $stmt->fetch_object()){ if($row->totalcategory > 0){ return true; } } } return false; } function CreateCategoryBreadcrumb($id,$tablename, $except = null) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $breadcrumb=""; $query = "SELECT id_category,parent_id,category_name,page_url FROM ".$objMysql->table_prefix."category WHERE id_category = $id"; $res = $objMysql->dbc->query($query); $row = mysqli_fetch_assoc($res); if($row['parent_id'] == 0) { $name = $row['category_name']; if(empty($_REQUEST["cat"])){ $breadcrumb = "<a href='".SITE_URL."'>Home</a> >>"; } $breadcrumb .= "<a href='".SITE_URL."category/".$row['page_url'].".html'>".$name."</a> >>"; return $breadcrumb; } else { $name = $row['category_name']; if(!empty($except) && $except == $name) return $this->CreateCategoryBreadcrumb($row['parent_id'],$tablename,$except)." ".$name; } if($this->IsSubCategoryExists($row['page_url'])){ $breadcrumb = $this->CreateCategoryBreadcrumb($row['parent_id'],$tablename,$except); $breadcrumb .= '<a href="'.SITE_URL.'category/'.$row['page_url'].'.html">'.$name.'</a> >>'; }else{ $breadcrumb = $this->CreateCategoryBreadcrumb($row['parent_id'],$tablename,$except); $breadcrumb .= '<a href="'.SITE_URL.'products/'.$row['page_url'].'.html">'.$name.'</a> >>'; } return $breadcrumb; } function GetMenu($page_url_param="") { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $query = "SELECT page_name,page_url FROM ".$objMysql->table_prefix."pages WHERE include_in_site = 1 ORDER BY page_name"; $html = ""; $stmt = $objMysql->dbc->stmt_init(); if($stmt->prepare($query)){ $stmt->execute(); $stmt->store_result(); $stmt->bind_result($page_name,$page_url); while($row = $stmt->fetch()){ if($page_url == $page_url_param){ $html .= '<li><a href="'.SITE_URL.$page_url.'.html" class="active">'.$page_name.'</a></li>'; }else{ $html .= '<li><a href="'.SITE_URL.$page_url.'.html">'.$page_name.'</a></li>'; } } } return $html; } function getUriSegments() { $base_url=$this->GetHost().BASE_FOLDER; $complete_url=$this->GetHost().$_SERVER['REQUEST_URI']; $request_url=str_replace($base_url,'',$complete_url); return explode("/", parse_url($request_url, PHP_URL_PATH)); } function getUriSegment($n) { $segs = $this->getUriSegments(); return count($segs)>0&&count($segs)>=($n-1)?!empty($segs[$n])?$segs[$n]:'':''; } function GetHost(){ if(isset($_SERVER['HTTPS'])){ $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; } else{ $protocol = 'http'; } return $protocol . "://" . $_SERVER['HTTP_HOST']; } function GetRoundedPrice($price) { return number_format((float)$price,2, '.', ''); } function GetCartInformation() { $html = ''; if(!isset($objProduct)) $objProduct = new Product(); if(empty($objProductAttributes)) $objProductAttributes=new ProductAttribute(); if(isset($_SESSION["product"]["id"]) && $_SESSION['product']['id']) { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $id_in_cart = implode(",",$_SESSION['product']['id']); $query = "SELECT id_product,product_title,item_code,regular_price,sale_price,(SELECT product_image FROM ".$objMysql->table_prefix."product_images WHERE product_id=P.id_product LIMIT 1)product_image FROM ".$objMysql->table_prefix."product P WHERE id_product IN(".$id_in_cart.")"; if($stmt=$objMysql->dbc->prepare($query)){ $stmt->execute(); $stmt->store_result(); if($stmt->num_rows > 0){ $html .= '<div class="contbxw"> <ul class="dropcart">'; $tot_price = 0; $imagepath=''; $stmt->bind_result($id_product,$product_title,$item_code,$regular_price,$sale_price,$product_image); $counter = 1; while($res = $stmt->fetch()){ $productprice=0; $product_quantity = $_SESSION['product']['quantity'][$id_product]; $product_other_description =''; $imagepath = SITE_URL.'assets/upload_files/product/thumb/'.$product_image; if($sale_price != "0.00"){ $regular_price=$this->GetRoundedPrice($sale_price); }else{ $regular_price=$this->GetRoundedPrice($regular_price); } if(isset($_SESSION["product"]["attribute"][$id_product])){ foreach($_SESSION["product"]["attribute"][$id_product] as $k=>$v){ $attribute_array=$objProductAttributes->GetAttributeById($k); $attribute_value_array=$objProductAttributes->GetAttributeValueById($v); $product_other_description .= '<p>'.$attribute_array['attribute_name'].' : '.$attribute_value_array['attribute_value_name'].'</p>'; } } $product_price = $product_quantity*($regular_price); $tot_price +=$product_price; $html .= '<li> <div class="imgprb"><img src="'.$imagepath.'" alt="'.$product_title.' width="100" height="100" /></div> <div class="bxpcont"> <p><strong>'.$product_title.'</strong></p>'; $html .= $product_other_description; $html .= '<p>Qty: '.$product_quantity.'</p>'; $html .= '<p>'.CURRENCYSYMBOL.number_format($regular_price,2).'</p> <p>Total: '.CURRENCYSYMBOL.$product_price.'</p></div>'; $html .= '<div class="conprct"><a href="'.SITE_URL.'cart.php?choice=deletecart&id='.$id_product.'&prid='.$counter.'" onclick="return confirm(\'Are you Sure to Delete the Item\');"><img src="'.SITE_URL.'assets/images/ic_close.png" alt="" /></a></div></li>'; $counter++; } $html .= '</ul><div class="tophdbx"> <div class="txthdg">Cart Subtotal</div> <div class="prctxtg">'.CURRENCYSYMBOL.number_format($tot_price,2).'</div> <div class="clr"></div> </div>'; $html .= '<div class="btmhdbx"><a href="'.SITE_URL.'cart.php" class="cartbtnim">View Cart</a></div>'; } } } return $html; } function SetPageParameter() { if(isset($_REQUEST["page"])) $this->page_parameter=$_REQUEST["page"]; } function SetSortParameter() { if(isset($_REQUEST["sortby"])) $this->sort_parameter=$_REQUEST["sortby"]; } function SetLimitParameter() { if(isset($_REQUEST["limit"])) $this->limit_parameter=$_REQUEST["limit"]; } function SetTargetUrl() { if(!isset($objCommonClass)) $objCommonClass = new CommonClass(); $this->target_url = $objCommonClass->GetUrl(); } function GetMailFormat($from,$to='',$mail_content) { $html='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body bgcolor="#fbfbfb"> <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" bgcolor="#fbfbfb"> <tbody><tr> <td height="10"></td> </tr><tr> <td align="center"><img src="'.SITE_URL.'/assets/images/Tivoli_logo.gif" style="border:none;font-size:30px;color:#335781;" alt="'.SITE_NAME.'" /></td> </tr> <tr> <td height="35"></td> </tr> <tr> <td valign="top" style="background:#fbfbfb url('.SITE_URL.'assets/images/bg_fundoo.jpg) repeat right top;width:100%; height:406px;"> <table width="100%"> <tbody><tr> <td valign="top"> <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="80%" style="font-family:Arial, Helvetica, sans-serif; font-size:13px;color:#404f5c; line-height:24px;"> <strong style="font-size:15px;color:#000;">Dear '.$to.'</strong>,<br> '.$mail_content.'<br> <strong style="color:#000;">From: '.$from.'</strong><br /> We hope you will enjoy your '.SITE_NAME.' experience. <br /><br /> <strong style="color:#000;">Thank you</strong> <br /> <em>'.SITE_NAME.'.</em> </td></tr> </table> </td> </tr> <tr> <td height="15"></td> </tr> </tbody></table> </td> </tr> <tr> <td height="25"></td> </tr> <tr> <td> </td> </tr> <tr> <td height="5"></td> </tr> </tbody></table> </body> </html>'; return $html; } function SendMail($from,$to1,$subject,$message) { $header = "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html; charset=iso-8859-1\r\n"; $header .= "Reply-To: $from" . "\r\n"; $header .= "From: Test <".$from.">" . "\r\n"; $res = mail($to1, $subject, $message, $header) or die("Sorry mail could not send this time!"); return true; } function GetSitemapProduct($category_id,$conn) { $productmenu=""; $query="SELECT id_product,product_title,item_code,page_url FROM ".$conn->table_prefix."product WHERE FIND_IN_SET({$category_id},category_ids) AND status=1"; $res=$conn->dbc->query($query); if($res->num_rows > 0) { $productmenu ='<ul>'; while($result=mysqli_fetch_assoc($res)) { $productmenu .= '<li><a href="'.SITE_URL.'product/'.$result["page_url"].'.html?cat='.$category_id.'">'.$result["product_title"].', Item# '.$result["item_code"].'</a></li>'; } $productmenu .= '</ul>'; } return $productmenu; } function SitemapCategoryTree($list,$parent,$append,$conn) { $list = '<li><a href='.SITE_URL."category/".$parent["page_url"].'.html>'.$parent["category_name"].'</a>'; $list .= $this->GetSitemapProduct($parent['id_category'],$conn); if ($this->hasChild($parent['id_category'],$conn)) // check if the id has a child { $append++; // this is our basis on what level is the category e.g. (child1,child2,child3) $list .= "<ul class='child child".$append." '>"; $sql = "SELECT id_category,category_name,parent_id,page_url FROM ".$conn->table_prefix."category WHERE parent_id = ' " . $parent['id_category'] . " ' "; $qry = $conn->dbc->query($sql); $child = mysqli_fetch_assoc($qry); do{ $list .= $this->SitemapCategoryTree($list,$child,$append,$conn); }while($child = mysqli_fetch_assoc($qry)); $list .= "</ul>"; } $list .= '</li>'; return $list; } function GetSitemapCategoryMenu($conn) { $list = ""; $sql = "SELECT id_category,parent_id,category_name,page_url FROM ".$conn->table_prefix."category WHERE (parent_id = 0 OR parent_id IS NULL) AND page_url != 'missingpage'"; $qry = $conn->dbc->query($sql); $parent = mysqli_fetch_assoc($qry); $mainlist = ""; do{ $mainlist .= $this->SitemapCategoryTree($list,$parent,$append = 0,$conn); }while($parent = mysqli_fetch_assoc($qry)); return $mainlist; } function GetSitemap() { if(!isset($objMysql)) $objMysql = new Mysql(); $objMysql->connect(); $html=""; $html.='<ul class="sitemap">'; $html.=$this->GetMenu(); $html.='<li><a href="#">Category</a> <ul>'.$this->GetSitemapCategoryMenu($objMysql).'</ul></li> </ul>'; return $html; } function hasChild($parent_id,$conn) { $sql = "SELECT COUNT(id_category) as count FROM ".$conn->table_prefix."category WHERE parent_id = '" .$parent_id ."'"; $qry = $conn->dbc->query($sql); $rs = mysqli_fetch_assoc($qry); return $rs['count']; } function GenerateInvoice($length){ $random= ""; srand((double)microtime()*1000000); $data = "ABCDEFGHIJKLMNPQRSTUVWXYZ"; $data .= "123456789"; for($i = 0; $i < $length; $i++) { $random .= substr($data, (rand()%(strlen($data))), 1); } return $random; } } ?>
© 2017 -
ZeroByte.ID
.