الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف يمكن اضافة صور الى ال calendar ؟

بدأه ramysarwat في 23 مارس 2010 · 5 رد · 1,009 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

حاولت البحث عن اى خصائص لاضافة صور الى الكالندر لكن لم اجد فكيف استطيع اضافة صور ؟

#2

ماذا تقصد بإضافة صور؟ وإلى أين بالضبط؟

أريد منك توضيحاً أكثر لكي أستطيع إفادتك

جزاك الله خيراً

مدونة ابنتي الرضيعة: يوميات رزان

مدونتي التقنية العربية: البرمجة مع عبد المنعم

Technical Blog: Abdul Moniem's Thoughts

LinkedIn: Profile

#3
أحمد عبد المنعم كتب:

ماذا تقصد بإضافة صور؟ وإلى أين بالضبط؟

أريد منك توضيحاً أكثر لكي أستطيع إفادتك

جزاك الله خيراً

المقصود هو اضافة خلفية لل calendar واعطاء صور للمفاتيح الخاصة بالايام وتاثيرات عند الضغط على الbutton او المرور علية واضافة صورة للهيدر وصور للاسهم الخاصة بالتالى والسابق

تم تعديل هذه المشاركة بواسطة ramysarwat في 23 مارس 2010 في 17:03

#4

كل هذه الأمور يمكنك التحكم عن طريق ال Themes and Styles

وإليك هذا المثال .. يمكنك استخدام هذا ال Style Sheet .. أو ال CSS وهو خاص بال Calendar وكل جزء فيها:

/************************************ 
************* Calendar **************
*************************************/

.calendar
{
    background-color: #FFFFFF !important;
    border: 1px solid #3A4F6C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    height: 200px !important;
    width: 220px !important;
    padding: 1px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
}

.calendarSelectedDayStyle
{
    color: #FFFFFF !important;
    vertical-align: middle;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    background-image: url('AdminImages/selected.gif') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    text-align: center !important;
    background-color: #FFFFFF !important;
}

.calendarSelectedDayStyle a
{
    color: #FFFFFF !important;
    vertical-align: middle;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    background-image: url('AdminImages/selected.gif') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    text-align: center !important;
    background-color: #FFFFFF !important;
    text-decoration: none;
}

.calendarSelectorStyle
{
    background-color: #F5F9FD;
    color: #3A4F6C;
}

.calendarWeekendDayStyle
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #3A4F6C !important;
    text-decoration: none;
}


.calendarWeekendDayStyle a
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #3A4F6C !important;
    text-decoration: none;
}
.calendarTodayDayStyle
{
    color: #3A4F6C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    background-image: url('AdminImages/today.gif') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    text-align: center !important;
    background-color: #FFFFFF !important;
}

.calendarTodayDayStyle a
{
    color: #3A4F6C !important;
    color: #3A4F6C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    background-image: url('AdminImages/today.gif') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    text-align: center !important;
    background-color: #FFFFFF !important;
    text-decoration: none;
}

.calendarOtherMonthDayStyle
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #3A4F6C !important;
    text-decoration: none;
}

.calendarOtherMonthDayStyle a
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #3A4F6C !important;
    text-decoration: none;
}

.calendarNextPrevStyle
{
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
}


.calendarNextPrevStyle a
{
    font-size: 14px;
    color: #FFFFFF !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
}


.calendarDayHeaderStyle
{
    background-color: #F5F9FD;
    color: #3A4F6C;
    height: 1px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    border-bottom-color: #3A4F6C;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.calendarTitleStyle
{
    background-color: #3A4F6C;
    border: 0px solid #3A4F6C;
    font-weight: bold;
    font-size: 14px;
    color: #F5F9FD;
    height: 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
}

.calendarTitleStyle tr, .calendarTitleStyle td
{
    padding: 0px;
    margin: 0px;
    border: 0px solid #3A4F6C;
    font-weight: bold;
    font-size: 14px;
    color: #F5F9FD;
    height: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    background-image: url('AdminImages/tile_cat.gif');
    vertical-align: middle;
    text-align: center;
}

.calendarDayStyle
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #3A4F6C !important;
    text-decoration: none;
}

.calendarDayStyle a
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #3A4F6C !important;
    text-decoration: none;
}

ومعه هذا ال Skin ضعه داخل ال Theme:

<asp:Calendar runat="server" CssClass="calendar" DayNameFormat="Shortest">
    <SelectedDayStyle CssClass="calendarSelectedDayStyle" />
    <SelectorStyle CssClass="calendarSelectorStyle" />
    <WeekendDayStyle CssClass="calendarWeekendDayStyle" />
    <TodayDayStyle CssClass="calendarTodayDayStyle" />
    <OtherMonthDayStyle CssClass="calendarOtherMonthDayStyle" />
    <NextPrevStyle CssClass="calendarNextPrevStyle" />
    <DayHeaderStyle CssClass="calendarDayHeaderStyle" />
    <TitleStyle CssClass="calendarTitleStyle" />
    <DayStyle CssClass="calendarDayStyle" />
</asp:Calendar>

وبهذا يمكنك التحكم بكل جزء وتفصيلة في ال Calendar

المثال السابق سيعطيك شكل الصورة المرفقة:

وطبعاً عليك أن تقوم بتغيير كل شيء لكل يناسب مشروعك .. هذا مثال من أحد المشاريع القديمة عندي ..

post-53551-1269354058435_thumb.jpg

4

مدونة ابنتي الرضيعة: يوميات رزان

مدونتي التقنية العربية: البرمجة مع عبد المنعم

Technical Blog: Abdul Moniem's Thoughts

LinkedIn: Profile

#5

حياك الله أخ أحمد عبد المنعم وجزاك الله كل خير وأجزل لك الأجر ....

ASP.NET Team Leader

moh_kin_mah@hotmail.com

--------------------------------

لو أعجبك أي من مشاركاتي ... برجاء قم بتقييم المشاركة عبر الأزرار الموجودة أسفل يسار كل مشاركة

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…