int sort_menu()
{
int i;
window(1,1,80,1);
textbackground(YELLOW);
clrscr();
for(i=0;i<2;i++)
{
window(sort_cors[i][0],sort_cors[i][1],sort_cors[i][0]+40,sort_cors[i][1]);
textbackground(i==pos2?GREEN:YELLOW);
textcolor(i==pos2?BLACK:RED);
clrscr();
cprintf("%s",sort_name[i]);
}
return 0;
}
int sort_war()
{
int key;
int n;
int pole=0;
key=getch();
if(key!=0)
switch(key)
{
case 77:pos2=sort_pos[pos2][1];pole=1;break;
case 75:pos2=sort_pos[pos2][0];pole=2;break;
case 13:sort(pole);
window(22,8,60,20);
textbackground(GREEN);
textcolor(WHITE);
clrscr();
gotoxy(15,7);
printf("GOTOVO");getch();
break;
case 27:exit(0);
case 59:clrscr();
window(1,1,80,25);
textbackground(BLUE);
textcolor(WHITE);
clrscr();
file();
getch();
clrscr();
true();
menu();
break;
case 64:matreshka();break;
case 66:del();getch();true();menu();break;
}
return pole;
}
int filtr_menu()
{
int i;
window(1,1,80,1);
textbackground(YELLOW);
clrscr();
for(i=0;i<2;i++)
{
window(sort_cors[i][0],sort_cors[i][1],sort_cors[i][0]+40,sort_cors[i][1]);
textbackground(i==pos2?GREEN:YELLOW);
textcolor(i==pos2?BLACK:RED);
clrscr();
cprintf("%s",filtr_name[i]);
}
return 0;
}